menu

Blazor

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

    Show / Hide Table of Contents

    Class ChartMarkerBorder

    Provides the options to customize the border of a chart marker.

    Inheritance
    System.Object
    ChartSubComponent
    ChartDefaultBorder
    ChartMarkerBorder
    Inherited Members
    ChartDefaultBorder.Color
    Namespace: Syncfusion.Blazor.Charts
    Assembly: Syncfusion.Blazor.dll
    Syntax
    public class ChartMarkerBorder : ChartDefaultBorder, ISubcomponentTracker

    Constructors

    ChartMarkerBorder()

    Declaration
    public ChartMarkerBorder()

    Properties

    Width

    Gets or sets the width of the marker border.

    Declaration
    public override double Width { get; set; }
    Property Value
    Type Description
    System.Double

    A double representing the width of the border surrounding the chart marker. The default value is 2.

    Overrides
    ChartDefaultBorder.Width
    Remarks

    This property allows you to specify the thickness of the border around a chart marker, influencing the marker's visual appearance in the chart.

    Examples
    // This example demonstrates how to add a border width to a marker in a chart series.
    <SfChart>
        <ChartSeriesCollection>
            <ChartSeries DataSource="@Data" Name="England" XName="XValue" YName="YValue">
                <ChartMarker Visible="true">
                    <ChartMarkerBorder Color="red" Width="2"></ChartMarkerBorder>
                </ChartMarker>
            </ChartSeries>
        </ChartSeriesCollection>
    </SfChart>
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved