menu

WinUI

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class ChartDataLabel - WinUI API Reference | Syncfusion

    Show / Hide Table of Contents

    Class ChartDataLabel

    Inheritance
    System.Object
    ChartSegment
    ChartDataLabel
    Implements
    System.ComponentModel.INotifyPropertyChanged
    Inherited Members
    ChartSegment.Fill
    ChartSegment.FillProperty
    ChartSegment.Item
    ChartSegment.PolygonPoints
    ChartSegment.PropertyChanged
    ChartSegment.Series
    ChartSegment.Stroke
    ChartSegment.StrokeDashArray
    ChartSegment.StrokeDashArrayProperty
    ChartSegment.StrokeProperty
    ChartSegment.StrokeWidth
    ChartSegment.StrokeWidthProperty
    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 Background dependency property.

    BorderBrushProperty

    Identifies the BorderBrush dependency property.

    Declaration
    public static readonly DependencyProperty BorderBrushProperty
    Field Value
    Type Description
    Microsoft.UI.Xaml.DependencyProperty

    The identifier for BorderBrush dependency property.

    BorderThicknessProperty

    Identifies the BorderThickness dependency property.

    Declaration
    public static readonly DependencyProperty BorderThicknessProperty
    Field Value
    Type Description
    Microsoft.UI.Xaml.DependencyProperty

    The identifier for BorderThickness dependency property.

    ConnectorHeightProperty

    Identifies the ConnectorHeight dependency property.

    Declaration
    public static readonly DependencyProperty ConnectorHeightProperty
    Field Value
    Type Description
    Microsoft.UI.Xaml.DependencyProperty

    The identifier for ConnectorHeight dependency property.

    ConnectorRotationProperty

    Identifies the ConnectorRotation dependency property.

    Declaration
    public static readonly DependencyProperty ConnectorRotationProperty
    Field Value
    Type Description
    Microsoft.UI.Xaml.DependencyProperty

    The identifier for ConnectorRotation dependency property.

    FontFamilyProperty

    Identifies the FontFamily dependency property.

    Declaration
    public static readonly DependencyProperty FontFamilyProperty
    Field Value
    Type Description
    Microsoft.UI.Xaml.DependencyProperty

    The identifier for FontFamily dependency property.

    FontSizeProperty

    Identifies the FontSize dependency property.

    Declaration
    public static readonly DependencyProperty FontSizeProperty
    Field Value
    Type Description
    Microsoft.UI.Xaml.DependencyProperty

    The identifier for FontSize dependency property.

    FontStyleProperty

    Identifies the FontStyle dependency property.

    Declaration
    public static readonly DependencyProperty FontStyleProperty
    Field Value
    Type Description
    Microsoft.UI.Xaml.DependencyProperty

    The identifier for FontStyle dependency property.

    ForegroundProperty

    Identifies the Foreground dependency property.

    Declaration
    public static readonly DependencyProperty ForegroundProperty
    Field Value
    Type Description
    Microsoft.UI.Xaml.DependencyProperty

    The identifier for Foreground dependency property.

    MarginProperty

    Identifies the Margin dependency property.

    Declaration
    public static readonly DependencyProperty MarginProperty
    Field Value
    Type Description
    Microsoft.UI.Xaml.DependencyProperty

    The identifier for Margin dependency property.

    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

    Implements

    System.ComponentModel.INotifyPropertyChanged
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved