Class
ChartSeriesLabelStrategy

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:

cs-api-definition
public abstract class ChartSeriesLabelStrategy

Inheritance: objectChartSeriesLabelStrategy

Constructors

ChartSeriesLabelStrategy()

Declaration

cs-api-definition
protected ChartSeriesLabelStrategy()

Properties

Options

Gets the functionality this strategy handles.

Declaration

cs-api-definition
public abstract LabelStrategyOptions Options { get; }

Property Value

LabelStrategyOptions

Methods

CreateDefaultVisual(DataPoint, int)

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

Declaration

cs-api-definition
public virtual FrameworkElement CreateDefaultVisual(DataPoint point, int labelIndex)

Parameters

point

DataPoint

The data point a label is needed for.

labelIndex

int

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

Returns

FrameworkElement

GetLabelContent(DataPoint, int)

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

Declaration

cs-api-definition
public virtual object GetLabelContent(DataPoint point, int labelIndex)

Parameters

point

DataPoint

The data point the label is associated with.

labelIndex

int

Returns

object

GetLabelDesiredSize(DataPoint, FrameworkElement, int)

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

Declaration

cs-api-definition
public virtual RadSize GetLabelDesiredSize(DataPoint point, FrameworkElement visual, int labelIndex)

Parameters

point

DataPoint

visual

FrameworkElement

labelIndex

int

Returns

RadSize

GetLabelLayoutSlot(DataPoint, FrameworkElement, int)

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

Declaration

cs-api-definition
public virtual RadRect GetLabelLayoutSlot(DataPoint point, FrameworkElement visual, int labelIndex)

Parameters

point

DataPoint

visual

FrameworkElement

labelIndex

int

Returns

RadRect

SetLabelContent(DataPoint, FrameworkElement, int)

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

Declaration

cs-api-definition
public virtual void SetLabelContent(DataPoint point, FrameworkElement visual, int labelIndex)

Parameters

point

DataPoint

The data point the label is associated with.

visual

FrameworkElement

The FrameworkElement instance that represents the label.

labelIndex

int

The label index.