menu

Blazor

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

    Show / Hide Table of Contents

    Class ChartDefaultMargin

    Provides the options for customizing the bottom, left, right, and top margins of the chart component.

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

    Constructors

    ChartDefaultMargin()

    Declaration
    public ChartDefaultMargin()

    Properties

    Bottom

    Gets or sets the bottom margin for the chart component.

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

    A System.Double representing the space in pixels added below the chart component. The default value is double.NaN.

    Remarks

    Adjusting the bottom margin allows for additional space at the bottom of the chart, which is useful for accommodating labels or other elements that extend beyond the chart area.

    Left

    Gets or sets the left margin for the chart component.

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

    A System.Double representing the space in pixels added to the left of the chart component. The default value is double.NaN.

    Remarks

    The left margin is primarily used to create buffer space on the left side, ideal for accommodating additional labels or annotations.

    Right

    Gets or sets the right margin for the chart component.

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

    A System.Double representing the space in pixels added to the right of the chart component. The default value is double.NaN.

    Remarks

    Adjusting the right margin is often necessary to provide extra space for labels or other chart features that extend beyond the chart's immediate area.

    Top

    Gets or sets the top margin for the chart component.

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

    A System.Double representing the space in pixels added above the chart component. The default value is double.NaN.

    Remarks

    The top margin is useful for creating space at the top of the chart to accommodate titles or legends that might otherwise overlap with chart data.

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