Class ChartLastDataLabelBorder
Provides options to customize the border of the last data point label within a ChartSeries.
Inheritance
Implements
Inherited Members
Namespace: Syncfusion.Blazor.Toolkit.Charts
Assembly: Syncfusion.Blazor.Toolkit.dll
Syntax
public class ChartLastDataLabelBorder : ChartDefaultBorder, IAsyncDisposable, ISubcomponentTracker
Remarks
This subcomponent is used inside ChartLastDataLabel and allows setting border width and color for the label's background rect, improving separation and contrast.
Constructors
ChartLastDataLabelBorder()
Declaration
public ChartLastDataLabelBorder()
Properties
Color
Gets or sets the border color of the last value label.
Declaration
public override string Color { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String | A System.String representing the border color. Accepts CSS color formats such as hex ( |
Overrides
Remarks
Defines the visual boundary of the label so it remains legible against surrounding chart elements.
Examples
<ChartLastDataLabel ShowLabel="true">
<ChartLastDataLabelBorder Color="red" />
</ChartLastDataLabel>
Width
Gets or sets the border width of the last value label.
Declaration
public override double Width { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Double | A System.Double that defines the thickness of the border in pixels.
The default value is |
Overrides
Remarks
Use this to visually distinguish the last value label over busy or colored chart backgrounds.
Examples
<ChartLastDataLabel ShowLabel="true">
<ChartLastDataLabelBorder Width="1" />
</ChartLastDataLabel>