alexa
menu

Blazor Toolkit

    Show / Hide Table of Contents

    Class ChartLastDataLabelBorder

    Provides options to customize the border of the last data point label within a ChartSeries.

    Inheritance
    System.Object
    SfBaseComponent
    ChartSubComponent
    ChartDefaultBorder
    ChartLastDataLabelBorder
    Implements
    System.IAsyncDisposable
    Inherited Members
    SfBaseComponent.DisposeAsync()
    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 (#ff0000), rgb, rgba, or named colors. The default value is System.String.Empty, which falls back to theme or inherited styles.

    Overrides
    ChartDefaultBorder.Color
    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 1.

    Overrides
    ChartDefaultBorder.Width
    Remarks

    Use this to visually distinguish the last value label over busy or colored chart backgrounds.

    Examples
    <ChartLastDataLabel ShowLabel="true">
      <ChartLastDataLabelBorder Width="1" />
    </ChartLastDataLabel>

    Implements

    System.IAsyncDisposable
    Back to top Generated by DocFX
    Copyright © 2001 - 2026 Syncfusion Inc. All Rights Reserved