alexa
menu

Blazor

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

    Show / Hide Table of Contents

    Class SeriesLabelBorder

    Provides options to customize the border of the inline series label.

    Inheritance
    object
    ComponentBase
    OwningComponentBase
    SfOwningComponentBase
    ChartSubComponent
    ChartDefaultBorder
    SeriesLabelBorder
    Implements
    IComponent
    IHandleEvent
    IHandleAfterRender
    IDisposable
    Inherited Members
    ChartDefaultBorder.Color
    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.Charts.dll
    Syntax
    public class SeriesLabelBorder : ChartDefaultBorder, IComponent, IHandleEvent, IHandleAfterRender, IDisposable
    Remarks

    The border of the inline series label can be customized using the SeriesLabelBorder class. Use this component as a nested child of SeriesLabelSettings to configure the border width and color.

    Examples
    // The following example demonstrates how to set a border for the inline series label:
    <SfChart>
        <ChartSeriesCollection>
            <ChartSeries DataSource="@WeatherReports" XName="X" YName="Y" Type="ChartSeriesType.Line">
                <SeriesLabelSettings Visible="true">
                    <SeriesLabelBorder Width="2" Color="#2E7D32" />
                </SeriesLabelSettings>
            </ChartSeries>
        </ChartSeriesCollection>
    </SfChart>

    Constructors

    SeriesLabelBorder()

    Declaration
    public SeriesLabelBorder()

    Properties

    Width

    Gets or sets the width of the inline series label border.

    Declaration
    [Parameter]
    public override double Width { get; set; }
    Property Value
    Type Description
    double

    A double that represents the width of the border. The default value is double.NaN.

    Overrides
    ChartDefaultBorder.Width
    Remarks

    The width of the series label border can be adjusted to enhance the visibility and aesthetics of the inline series labels in the chart.

    Examples
    // The following example demonstrates setting the width of the series label border to 2:
    <SfChart>
        <ChartSeriesCollection>
            <ChartSeries DataSource="@WeatherReports" XName="X" YName="Y">
                <SeriesLabelSettings Visible="true">
                    <SeriesLabelBorder Width="2" Color="#2E7D32" />
                </SeriesLabelSettings>
            </ChartSeries>
        </ChartSeriesCollection>
    </SfChart>

    Implements

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