Class ChartMarkerBorder
Provides the options to customize the border of a chart marker.
Inherited Members
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
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>