Class ChartDataLabelSettings
ChartDataLabelBase represents the class used for configuring series DataLabelSettings for chart.
Inheritance
Namespace: Syncfusion.UI.Xaml.Charts
Assembly: Syncfusion.Chart.WinUI.dll
Syntax
public abstract class ChartDataLabelSettings : DependencyObject
Constructors
ChartDataLabelSettings()
Initializes a new instance of the ChartDataLabelSettings class.
Declaration
public ChartDataLabelSettings()
Fields
BackgroundProperty
Identifies the Background dependency property.
Declaration
public static readonly DependencyProperty BackgroundProperty
Field Value
Type | Description |
---|---|
Microsoft.UI.Xaml.DependencyProperty | The identifier for |
BorderBrushProperty
Identifies the BorderBrush dependency property.
Declaration
public static readonly DependencyProperty BorderBrushProperty
Field Value
Type | Description |
---|---|
Microsoft.UI.Xaml.DependencyProperty | The identifier for |
BorderThicknessProperty
Identifies the BorderThickness dependency property.
Declaration
public static readonly DependencyProperty BorderThicknessProperty
Field Value
Type | Description |
---|---|
Microsoft.UI.Xaml.DependencyProperty | The identifier for |
ConnectorHeightProperty
Identifies the ConnectorHeight dependency property.
Declaration
public static readonly DependencyProperty ConnectorHeightProperty
Field Value
Type | Description |
---|---|
Microsoft.UI.Xaml.DependencyProperty | The identifier for |
ConnectorLineStyleProperty
Identifies the ConnectorLineStyle dependency property.
Declaration
public static readonly DependencyProperty ConnectorLineStyleProperty
Field Value
Type | Description |
---|---|
Microsoft.UI.Xaml.DependencyProperty | The identifier for |
ConnectorRotationProperty
Identifies the ConnectorRotation dependency property.
Declaration
public static readonly DependencyProperty ConnectorRotationProperty
Field Value
Type | Description |
---|---|
Microsoft.UI.Xaml.DependencyProperty | The identifier for |
ContentTemplateProperty
Identifies the ContentTemplate dependency property.
Declaration
public static readonly DependencyProperty ContentTemplateProperty
Field Value
Type | Description |
---|---|
Microsoft.UI.Xaml.DependencyProperty | The identifier for |
ContextProperty
Identifies the Context dependency property.
Declaration
public static readonly DependencyProperty ContextProperty
Field Value
Type | Description |
---|---|
Microsoft.UI.Xaml.DependencyProperty | The identifier for |
FontFamilyProperty
Identifies the FontFamily dependency property.
Declaration
public static readonly DependencyProperty FontFamilyProperty
Field Value
Type | Description |
---|---|
Microsoft.UI.Xaml.DependencyProperty | The identifier for |
FontSizeProperty
Identifies the FontSize dependency property.
Declaration
public static readonly DependencyProperty FontSizeProperty
Field Value
Type | Description |
---|---|
Microsoft.UI.Xaml.DependencyProperty | The identifier for |
FontStyleProperty
Identifies the FontStyle dependency property.
Declaration
public static readonly DependencyProperty FontStyleProperty
Field Value
Type | Description |
---|---|
Microsoft.UI.Xaml.DependencyProperty | The identifier for |
ForegroundProperty
Identifies the Foreground dependency property.
Declaration
public static readonly DependencyProperty ForegroundProperty
Field Value
Type | Description |
---|---|
Microsoft.UI.Xaml.DependencyProperty | The identifier for |
FormatProperty
Identifies the Format dependency property.
Declaration
public static readonly DependencyProperty FormatProperty
Field Value
Type | Description |
---|---|
Microsoft.UI.Xaml.DependencyProperty | The identifier for |
HighlightOnSelectionProperty
Identifies the HighlightOnSelection dependency property.
Declaration
public static readonly DependencyProperty HighlightOnSelectionProperty
Field Value
Type | Description |
---|---|
Microsoft.UI.Xaml.DependencyProperty | The identifier for |
HorizontalAlignmentProperty
Identifies the HorizontalAlignment dependency property.
Declaration
public static readonly DependencyProperty HorizontalAlignmentProperty
Field Value
Type | Description |
---|---|
Microsoft.UI.Xaml.DependencyProperty | The identifier for |
MarginProperty
Identifies the Margin dependency property.
Declaration
public static readonly DependencyProperty MarginProperty
Field Value
Type | Description |
---|---|
Microsoft.UI.Xaml.DependencyProperty | The identifier for |
RotationProperty
Identifies the Rotation dependency property.
Declaration
public static readonly DependencyProperty RotationProperty
Field Value
Type | Description |
---|---|
Microsoft.UI.Xaml.DependencyProperty | The identifier for |
UseSeriesPaletteProperty
Identifies the UseSeriesPalette dependency property.
Declaration
public static readonly DependencyProperty UseSeriesPaletteProperty
Field Value
Type | Description |
---|---|
Microsoft.UI.Xaml.DependencyProperty | The identifier for |
VerticalAlignmentProperty
Identifies the VerticalAlignment dependency property.
Declaration
public static readonly DependencyProperty VerticalAlignmentProperty
Field Value
Type | Description |
---|---|
Microsoft.UI.Xaml.DependencyProperty | The identifier for |
Properties
Background
Gets or sets the background brush for the data label.
Declaration
public Brush Background { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.UI.Xaml.Media.Brush | It takes the Microsoft.UI.Xaml.Media.Brush value. |
BorderBrush
Gets or sets the brush that draws the outer border stroke brush.
Declaration
public Brush BorderBrush { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.UI.Xaml.Media.Brush | It takes the Microsoft.UI.Xaml.Media.Brush value. |
BorderThickness
Gets or sets the outer border thickness of the label.
Declaration
public Thickness BorderThickness { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.UI.Xaml.Thickness | It takes the Microsoft.UI.Xaml.Thickness value and its default value is 0. |
ConnectorHeight
Gets or sets the connector line height of the data label.
Declaration
public double ConnectorHeight { get; set; }
Property Value
Type | Description |
---|---|
System.Double | It takes the double value and its default value 0. |
ConnectorLineStyle
Gets or sets the connector line style.
Declaration
public Style ConnectorLineStyle { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.UI.Xaml.Style | It takes theMicrosoft.UI.Xaml.Style value. |
ConnectorRotation
Gets or sets the rotation angle for the connector line.
Declaration
public double ConnectorRotation { get; set; }
Property Value
Type | Description |
---|---|
System.Double | It takes the double value and its default value is double.NaN. |
ContentTemplate
Gets or sets the custom template for the data label.
Declaration
public DataTemplate ContentTemplate { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.UI.Xaml.DataTemplate | It takes the Microsoft.UI.Xaml.DataTemplate value. |
Context
Gets or sets the actual label content to be displayed as DataLabelSettings.
Declaration
public LabelContext Context { get; set; }
Property Value
Type | Description |
---|---|
LabelContext | It takes the LabelContext value and its default value is YValue. |
Remarks
This property is used to define the value to be displayed in data label like x value or any other value from underlying model object.
FontFamily
Gets or sets the data label font family.
Declaration
public FontFamily FontFamily { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.UI.Xaml.Media.FontFamily | It takes the FontFamily value. |
Remarks
Identifies font family that should be used to display DataLabelSettings's text.
FontSize
Gets or sets the font size for the label.
Declaration
public double FontSize { get; set; }
Property Value
Type | Description |
---|---|
System.Double | It takes the double value. |
FontStyle
Gets or sets the top-level font style for the label.
Declaration
public FontStyle FontStyle { get; set; }
Property Value
Type | Description |
---|---|
Windows.UI.Text.FontStyle | It takes the FontStyle value. |
Foreground
Gets or sets foreground brush to apply to the label content.
Declaration
public Brush Foreground { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.UI.Xaml.Media.Brush | It takes the Microsoft.UI.Xaml.Media.Brush value. |
Format
Gets or sets the string formatting for the data labels.
Declaration
public string Format { get; set; }
Property Value
Type | Description |
---|---|
System.String | It takes the string value and its default value is null. |
HighlightOnSelection
Gets or sets a value indicating whether to enable the selection for the datalabels.
Declaration
public bool HighlightOnSelection { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | if its |
Remarks
This feature will be useful for the continuous series like FastLine, Area, etc.
HorizontalAlignment
Gets or sets the horizontal alignment for the label.
Declaration
public HorizontalAlignment HorizontalAlignment { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.UI.Xaml.HorizontalAlignment | It takes the HorizontalAlignment value. |
Margin
Gets or sets the outer margin of a label.
Declaration
public Thickness Margin { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.UI.Xaml.Thickness | It takes the Microsoft.UI.Xaml.Thickness value and its default value 5. |
Rotation
Gets or sets the rotation angle to the data label content.
Declaration
public double Rotation { get; set; }
Property Value
Type | Description |
---|---|
System.Double | The default value is 0 and the label will be rotated with center as origin. |
Series
Gets the associated series of this data label.
Declaration
public ChartSeriesBase Series { get; }
Property Value
Type | Description |
---|---|
ChartSeriesBase | It returns the corresponding series. |
ShowConnectorLine
Gets or sets a value indicating whether to show or hide the connector line.
Declaration
public bool ShowConnectorLine { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | It takes the bool value. |
UseSeriesPalette
Gets or sets a value indicating whether the data label should reflect the series interior.
Declaration
public bool UseSeriesPalette { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | if its |
VerticalAlignment
Gets or sets the vertical alignment for the label.
Declaration
public VerticalAlignment VerticalAlignment { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.UI.Xaml.VerticalAlignment | It takes the VerticalAlignment value. |