alexa
menu

Blazor

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Search Results for

    Show / Hide Table of Contents

    Class ChartStackLabelMargin

    Provides options to customize the margin around the stack label.

    Inheritance
    object
    ComponentBase
    OwningComponentBase
    SfOwningComponentBase
    ChartSubComponent
    ChartDefaultMargin
    ChartStackLabelMargin
    Implements
    IComponent
    IHandleEvent
    IHandleAfterRender
    IDisposable
    Inherited Members
    ComponentBase.Assets
    ComponentBase.AssignedRenderMode
    ComponentBase.BuildRenderTree(RenderTreeBuilder)
    ComponentBase.DispatchExceptionAsync(Exception)
    ComponentBase.InvokeAsync(Action)
    ComponentBase.InvokeAsync(Func<Task>)
    ComponentBase.OnAfterRender(bool)
    ComponentBase.OnAfterRenderAsync(bool)
    ComponentBase.OnInitialized()
    ComponentBase.OnInitializedAsync()
    ComponentBase.OnParametersSet()
    ComponentBase.OnParametersSetAsync()
    ComponentBase.RendererInfo
    ComponentBase.SetParametersAsync(ParameterView)
    ComponentBase.ShouldRender()
    ComponentBase.StateHasChanged()
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    OwningComponentBase.Dispose(bool)
    OwningComponentBase.IsDisposed
    OwningComponentBase.ScopedServices
    Namespace: Syncfusion.Blazor.Charts
    Assembly: Syncfusion.Blazor.dll
    Syntax
    public class ChartStackLabelMargin : ChartDefaultMargin, IComponent, IHandleEvent, IHandleAfterRender, IDisposable

    Constructors

    ChartStackLabelMargin()

    Declaration
    public ChartStackLabelMargin()

    Properties

    Bottom

    Gets or sets the bottom margin of the stack label.

    Declaration
    [Parameter]
    public override double Bottom { get; set; }
    Property Value
    Type Description
    double

    A 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
    [Parameter]
    public override double Left { get; set; }
    Property Value
    Type Description
    double

    A 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
    [Parameter]
    public override double Right { get; set; }
    Property Value
    Type Description
    double

    A 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
    [Parameter]
    public override double Top { get; set; }
    Property Value
    Type Description
    double

    A 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>

    Implements

    IComponent
    IHandleEvent
    IHandleAfterRender
    IDisposable
    In this article
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved