Class ChartDataLabel
Implements
Inherited Members
Namespace: Syncfusion.UI.Xaml.Charts
Assembly: Syncfusion.Chart.WinUI.dll
Syntax
public class ChartDataLabel : ChartSegment, INotifyPropertyChanged
Constructors
ChartDataLabel()
Declaration
public ChartDataLabel()
ChartDataLabel(Double, Double, Double, Double, ChartSeries)
Declaration
public ChartDataLabel(double xVal, double yVal, double x, double y, ChartSeries series)
Parameters
Type | Name | Description |
---|---|---|
System.Double | xVal | |
System.Double | yVal | |
System.Double | x | |
System.Double | y | |
ChartSeries | series |
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 |
ConnectorRotationProperty
Identifies the ConnectorRotation dependency property.
Declaration
public static readonly DependencyProperty ConnectorRotationProperty
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 |
MarginProperty
Identifies the Margin dependency property.
Declaration
public static readonly DependencyProperty MarginProperty
Field Value
Type | Description |
---|---|
Microsoft.UI.Xaml.DependencyProperty | The identifier for |
Properties
Background
Gets or sets a brush value to customize the appearance of the chart data label.
Declaration
public Brush Background { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.UI.Xaml.Media.Brush | It accepts a Microsoft.UI.Xaml.Media.Brush value and its default value is null. |
BorderBrush
Gets or sets a brush value to customize the border appearance of the chart data label.
Declaration
public Brush BorderBrush { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.UI.Xaml.Media.Brush | It accepts a Microsoft.UI.Xaml.Media.Brush value and its default value is Transparent. |
BorderThickness
Gets or sets a value to modify the border thickness of the chart data label.
Declaration
public Thickness BorderThickness { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.UI.Xaml.Thickness | It accepts a Microsoft.UI.Xaml.Thickness value and its default value is 0. |
ConnectorHeight
Gets or sets a value to change the data label's connector line height.
Declaration
public double ConnectorHeight { get; set; }
Property Value
Type | Description |
---|---|
System.Double | It accepts the double value and its default value is 0. |
ConnectorRotation
Gets or sets a value to rotate the connector line.
Declaration
public double ConnectorRotation { get; set; }
Property Value
Type | Description |
---|---|
System.Double | It accepts the double value and its default value is 0. |
Content
Gets the content of the data label.
Declaration
public object Content { get; }
Property Value
Type |
---|
System.Object |
FontFamily
Gets or sets a value to customize the font family for the data label.
Declaration
public FontFamily FontFamily { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.UI.Xaml.Media.FontFamily | It accepts the FontFamily values and the default value is Times New Roman. |
FontSize
Gets or sets a value to change the data label's text size.
Declaration
public double FontSize { get; set; }
Property Value
Type | Description |
---|---|
System.Double | It accepts the double value. |
FontStyle
Gets or sets a value to customize the font style for the data label.
Declaration
public FontStyle FontStyle { get; set; }
Property Value
Type | Description |
---|---|
Windows.UI.Text.FontStyle | It accepts the FontStyle values and the default value is Windows.UI.Text.FontStyle.Normal. |
Foreground
Gets or sets a brush value to customize the text color of the data label.
Declaration
public Brush Foreground { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.UI.Xaml.Media.Brush | It takes the Microsoft.UI.Xaml.Media.Brush value. |
Margin
Gets or sets a thickness value to adjust the data label's margin.
Declaration
public Thickness Margin { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.UI.Xaml.Thickness | It accepts the Microsoft.UI.Xaml.Thickness values and the default value is 5. |
X
Gets the x coordinate relative to the series.
Declaration
public double X { get; }
Property Value
Type |
---|
System.Double |
XData
Gets the or sets a data point value that is bound with x for the data label.
Declaration
public double XData { get; set; }
Property Value
Type |
---|
System.Double |
Y
Gets the y coordinate relative to the series.
Declaration
public double Y { get; }
Property Value
Type |
---|
System.Double |
YData
Gets the or sets a data point value that is bound with y for the data label.
Declaration
public double YData { get; set; }
Property Value
Type |
---|
System.Double |