alexa
menu

Blazor Toolkit

    Show / Hide Table of Contents

    Class ChartDataLabelBorder

    Configures the border of data labels in SfChart.

    Inheritance
    System.Object
    SfBaseComponent
    ChartSubComponent
    ChartDefaultBorder
    ChartDataLabelBorder
    Implements
    System.IAsyncDisposable
    Inherited Members
    ChartDefaultBorder.Color
    SfBaseComponent.DisposeAsync()
    Namespace: Syncfusion.Blazor.Toolkit.Charts
    Assembly: Syncfusion.Blazor.Toolkit.dll
    Syntax
    public class ChartDataLabelBorder : ChartDefaultBorder, IAsyncDisposable, ISubcomponentTracker

    Constructors

    ChartDataLabelBorder()

    Declaration
    public ChartDataLabelBorder()

    Properties

    Width

    Gets or sets the width of the data label border.

    Declaration
    public override double Width { get; set; }
    Property Value
    Type Description
    System.Double

    A double that represents the width of the border. The default value is double.NaN.

    Overrides
    ChartDefaultBorder.Width
    Remarks

    The width of the data label border can be adjusted to enhance the visibility and aesthetics of the data labels in the chart.

    Examples
    // The following example demonstrates setting the width of the data label border to 2:
    <SfChart>
        <ChartSeries DataSource="@WeatherReports" XName="X" YName="Y">
            <ChartMarker>
                <ChartDataLabel Visible="true">
                    <ChartDataLabelBorder Width="2" Color="#1b49cc"></ChartDataLabelBorder>
                </ChartDataLabel>
            </ChartMarker>
        </ChartSeries>
    </SfChart>

    Implements

    System.IAsyncDisposable
    Back to top Generated by DocFX
    Copyright © 2001 - 2026 Syncfusion Inc. All Rights Reserved