menu

Blazor

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

    Show / Hide Table of Contents

    Class ChartStackLabelMargin

    Provides options to customize the margin around the stack label.

    Inheritance
    System.Object
    ChartSubComponent
    ChartDefaultMargin
    ChartStackLabelMargin
    Namespace: Syncfusion.Blazor.Charts
    Assembly: Syncfusion.Blazor.dll
    Syntax
    public class ChartStackLabelMargin : ChartDefaultMargin, ISubcomponentTracker

    Constructors

    ChartStackLabelMargin()

    Declaration
    public ChartStackLabelMargin()

    Properties

    Bottom

    Gets or sets the bottom margin of the stack label.

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

    A System.Double value that specifies the bottom margin in pixels. The default value is 5.

    Overrides
    ChartDefaultMargin.Bottom
    Remarks

    This property customizes the space between the stack label and the bottom edge of its border.

    Examples
    <SfChart>
        <ChartSeries XName="x" YName="y" Type="ChartSeriesType.StackingColumn">
        </ChartSeries>
        <ChartStackLabelSettings Visible="true">
            <ChartStackLabelMargin Bottom="5">
            </ChartStackLabelMargin>
        </ChartStackLabelSettings>
    </SfChart>

    Left

    Gets or sets the left margin of the stack label.

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

    A System.Double value that specifies the left margin in pixels. The default value is 5.

    Overrides
    ChartDefaultMargin.Left
    Remarks

    This property customizes the space between the stack label and the left edge of its border.

    Examples
    <SfChart>
        <ChartSeries XName="x" YName="y" Type="ChartSeriesType.StackingColumn">
        </ChartSeries>
        <ChartStackLabelSettings Visible="true">
            <ChartStackLabelMargin Left="5">
            </ChartStackLabelMargin>
        </ChartStackLabelSettings>
    </SfChart>

    Right

    Gets or sets the right margin of the stack label.

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

    A System.Double value that specifies the right margin in pixels. The default value is 5.

    Overrides
    ChartDefaultMargin.Right
    Remarks

    This property customizes the space between the stack label and the right edge of its border.

    Examples
    <SfChart>
        <ChartSeries XName="x" YName="y" Type="ChartSeriesType.StackingColumn">
        </ChartSeries>
        <ChartStackLabelSettings Visible="true">
            <ChartStackLabelMargin Right="5">
            </ChartStackLabelMargin>
        </ChartStackLabelSettings>
    </SfChart>

    Top

    Gets or sets the top margin of the stack label.

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

    A System.Double value that specifies the top margin in pixels. The default value is 5.

    Overrides
    ChartDefaultMargin.Top
    Remarks

    This property customizes the space between the stack label and the top edge of its border.

    Examples
    <SfChart>
        <ChartSeries XName="x" YName="y" Type="ChartSeriesType.StackingColumn">
        </ChartSeries>
        <ChartStackLabelSettings Visible="true">
            <ChartStackLabelMargin Top="5">
            </ChartStackLabelMargin>
        </ChartStackLabelSettings>
    </SfChart>
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved