New to Telerik UI for WPFStart a free 30-day trial

Allows for pluggable customization of the appearance and layout of data point labels within a ChartSeries instance.

Definition

Namespace:Telerik.Windows.Controls.ChartView

Assembly:Telerik.Windows.Controls.Chart.dll

Syntax:

C#
public abstract class ChartSeriesLabelStrategy

Inheritance: objectChartSeriesLabelStrategy

Constructors

C#
protected ChartSeriesLabelStrategy()

Properties

Gets the functionality this strategy handles.

C#
public abstract LabelStrategyOptions Options { get; }

Methods

Creates a FrameworkElement instance that will represent the label for the provided data point.

C#
public virtual FrameworkElement CreateDefaultVisual(DataPoint point, int labelIndex)
Parameters:pointDataPoint

The data point a label is needed for.

labelIndexint

The index of the label. More than one label is supported per data point.

Returns:

FrameworkElement

Gets the content for the label at the specified index, associated with the provided data point.

C#
public virtual object GetLabelContent(DataPoint point, int labelIndex)
Parameters:pointDataPoint

The data point the label is associated with.

labelIndexint
Returns:

object

Gets the RadSize structure that is the desired size of the specified label visual, associated with the provided data point.

C#
public virtual RadSize GetLabelDesiredSize(DataPoint point, FrameworkElement visual, int labelIndex)
Parameters:pointDataPointvisualFrameworkElementlabelIndexintReturns:

RadSize

Gets the RadRect structure that defines the layout slot of the label at the specified label index, associated with the provided data point.

C#
public virtual RadRect GetLabelLayoutSlot(DataPoint point, FrameworkElement visual, int labelIndex)
Parameters:pointDataPointvisualFrameworkElementlabelIndexintReturns:

RadRect

Sets the content of the label visual at the specified label index associated with the provided data point.

C#
public virtual void SetLabelContent(DataPoint point, FrameworkElement visual, int labelIndex)
Parameters:pointDataPoint

The data point the label is associated with.

visualFrameworkElement

The FrameworkElement instance that represents the label.

labelIndexint

The label index.