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

Describes the appearance of the labels within a ChartSeries. A chart series can have multiple definitions, allowing for multiple labels per data point.

Definition

Namespace:Telerik.Windows.Controls.ChartView

Assembly:Telerik.Windows.Controls.Chart.dll

Syntax:

C#
public struct ChartSeriesLabelDefinition

Inherited Members ValueType.Equals(object)ValueType.GetHashCode()ValueType.ToString()

Properties

Gets or sets the DataPointBinding instance that will retrieve the content of each label. Valid when the owning ChartSeries is data-bound.

C#
[TypeConverter(typeof(StringToDataPointBindingConverter))]
public DataPointBinding Binding { readonly get; set; }

Gets or sets the Style instance that defines the appearance of the default label visuals - TextBlock instances.

C#
public Style DefaultVisualStyle { readonly get; set; }

Gets or sets the string used to format the label content, using the method.

C#
public string Format { readonly get; set; }

HorizontalAlignment

HorizontalAlignment

Gets or sets the alignment along the X-axis of each label relative to the DataPoint it is associated to.

C#
public HorizontalAlignment HorizontalAlignment { get; set; }

Margin

Thickness

Gets or sets the Thickness that defines the offset of each label from the four box edges.

C#
public Thickness Margin { readonly get; set; }

Gets or sets a custom ChartSeriesLabelStrategy instance that may be used to completely override labels appearance, content and layout.

C#
public ChartSeriesLabelStrategy Strategy { readonly get; set; }

Template

DataTemplate

Gets or sets the DataTemplate instance that may be used to define custom-looking labels.

C#
public DataTemplate Template { readonly get; set; }

TemplateSelector

DataTemplateSelector

Gets or sets the DataTemplateSelector instance that may be used to provide context-specific data templates, depending on the provided DataPoint.

C#
public DataTemplateSelector TemplateSelector { readonly get; set; }

VerticalAlignment

VerticalAlignment

Gets or sets the alignment along the Y-axis of each label relative to the DataPoint it is associated to.

C#
public VerticalAlignment VerticalAlignment { readonly get; set; }