Class StockChartLastDataLabelBorder
Provides options to customize the border style and appearance of the label for the last data point in a StockChartSeries.
Inheritance
Namespace: Syncfusion.Blazor.Charts
Assembly: Syncfusion.Blazor.dll
Syntax
public class StockChartLastDataLabelBorder : OwningComponentBase
Remarks
This class is used to render and customize the last value label for stock chart series within the SfStockChart.
Constructors
StockChartLastDataLabelBorder()
Declaration
public StockChartLastDataLabelBorder()
Properties
Color
Gets or sets the border color of the last value label.
Declaration
public string Color { get; set; }
Property Value
Type | Description |
---|---|
System.String | A System.String representing the color of the border. |
Remarks
This property helps define the visual boundary of the last value label, improving contrast and clarity.
Examples
<SfStockChart>
<StockChartSeriesCollection>
<StockChartSeries XName="X" YName="Y" DataSource="@StockData" Type="ChartSeriesType.Line">
<StockChartLastDataLabel ShowLabel="true">
<StockChartLastDataLabelBorder Color=βRedβ />
</StockChartLastDataLabel>
</StockChartSeries>
</StockChartSeriesCollection>
</SfStockChart>
Width
Gets or sets the border width of the last value label.
Declaration
public double Width { get; set; }
Property Value
Type | Description |
---|---|
System.Double | A System.Double that defines the thickness of the border in pixels. |
Remarks
Use this property to visually distinguish the last value label with a border, especially on busy or colored stock chart backgrounds.
Examples
<SfStockChart>
<StockChartSeriesCollection>
<StockChartSeries XName="X" YName="Y" DataSource="@StockData" Type="ChartSeriesType.Line">
<StockChartLastDataLabel ShowLabel="true">
<StockChartLastDataLabelBorder Width=β1β />
</StockChartLastDataLabel>
</StockChartSeries>
</StockChartSeriesCollection>
</SfStockChart>