menu

Blazor

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

    Show / Hide Table of Contents

    Class ChartLastDataLabelBorder

    Provides options to customize the border style and appearance of the label for the last data point in a ChartSeries.

    Inheritance
    System.Object
    ChartSubComponent
    ChartDefaultBorder
    ChartLastDataLabelBorder
    Namespace: Syncfusion.Blazor.Charts
    Assembly: Syncfusion.Blazor.dll
    Syntax
    public class ChartLastDataLabelBorder : ChartDefaultBorder, ISubcomponentTracker
    Remarks

    This class is used to render and customize the last value label for chart series within the SfChart.

    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 color of the border.
    You can use standard CSS color values such as hex (#ff0000), RGB, or named colors.
    The default value is string.Empty, which applies no color.

    Overrides
    ChartDefaultBorder.Color
    Remarks

    This property helps define the visual boundary of the last value label, improving contrast and clarity.

    Examples
    <SfChart>
       <ChartSeriesCollection>
        <ChartSeries XName="X" YName="Y" DataSource="@StockData">
            <ChartLastDataLabel ShowLabel="true">
                <ChartLastDataLabelBorder Color="red" />
            </ChartLastDataLabel >
        </ChartSeries>
       </ChartSeriesCollection>
    </SfChart>

    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 0, which means no visible border.

    Overrides
    ChartDefaultBorder.Width
    Remarks

    Use this property to visually distinguish the last value label with a border, especially on busy or colored chart backgrounds.

    Examples
    <SfChart>
       <ChartSeriesCollection>
        <ChartSeries XName="X" YName="Y" DataSource="@StockData">
            <ChartLastDataLabel ShowLabel="true">
                <ChartLastDataLabelBorder Width="1" />
            </ChartLastDataLabel>
        </ChartSeries>
       </ChartSeriesCollection>
    </SfChart>
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved