Class ChartDefaultMargin
Provides the options for customizing the bottom, left, right, and top margins of the chart component.
Inheritance
Inherited Members
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 |
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 |
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 |
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 |
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.