alexa
menu

Blazor Toolkit

    Show / Hide Table of Contents

    Class ChartStackLabelBorder

    Configures the border appearance for the stack labels, including options for border width and color.

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

    Use this component within ChartStackLabelSettings to customize the border around the stack labels. Changes trigger a lightweight renderer refresh only when values actually change.

    Constructors

    ChartStackLabelBorder()

    Declaration
    public ChartStackLabelBorder()

    Properties

    Width

    Gets or sets the width of the stack label border.

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

    A System.Double that represents the width of the border, in pixels. The default value is double.NaN.

    Overrides
    ChartDefaultBorder.Width
    Remarks

    Adjust this property to increase or decrease the thickness of the stack label border, enhancing the visibility and appearance of stack labels in the chart.

    Examples
    <SfChart>
        <ChartSeries XName="x" YName="y" Type="ChartSeriesType.StackingColumn">
        </ChartSeries>
        <ChartStackLabelSettings Visible="true">
            <ChartStackLabelBorder Width="2">
            </ChartStackLabelBorder>
        </ChartStackLabelSettings>
    </SfChart>

    Implements

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