Class ChartStackLabelMargin
Provides options to customize the margin around the stack label.
Inheritance
Inherited Members
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
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
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
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
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>