alexa
menu

Blazor

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Search Results for

    Show / Hide Table of Contents

    Class StockChartLastDataLabelBorder

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

    Inheritance
    object
    ComponentBase
    OwningComponentBase
    SfOwningComponentBase
    StockChartLastDataLabelBorder
    Implements
    IComponent
    IHandleEvent
    IHandleAfterRender
    IDisposable
    Inherited Members
    ComponentBase.Assets
    ComponentBase.AssignedRenderMode
    ComponentBase.BuildRenderTree(RenderTreeBuilder)
    ComponentBase.DispatchExceptionAsync(Exception)
    ComponentBase.InvokeAsync(Action)
    ComponentBase.InvokeAsync(Func<Task>)
    ComponentBase.OnAfterRender(bool)
    ComponentBase.OnAfterRenderAsync(bool)
    ComponentBase.OnInitialized()
    ComponentBase.OnInitializedAsync()
    ComponentBase.OnParametersSet()
    ComponentBase.OnParametersSetAsync()
    ComponentBase.RendererInfo
    ComponentBase.SetParametersAsync(ParameterView)
    ComponentBase.ShouldRender()
    ComponentBase.StateHasChanged()
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    OwningComponentBase.Dispose(bool)
    OwningComponentBase.IsDisposed
    OwningComponentBase.ScopedServices
    Namespace: Syncfusion.Blazor.Charts
    Assembly: Syncfusion.Blazor.dll
    Syntax
    public class StockChartLastDataLabelBorder : SfOwningComponentBase, IComponent, IHandleEvent, IHandleAfterRender, IDisposable
    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
    [Parameter]
    public string Color { get; set; }
    Property Value
    Type Description
    string

    A 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.

    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
    [Parameter]
    public double Width { get; set; }
    Property Value
    Type Description
    double

    A double that defines the thickness of the border in pixels.
    The default value is 0, which means no visible border.

    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>

    Implements

    IComponent
    IHandleEvent
    IHandleAfterRender
    IDisposable
    In this article
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved