Category / Section
How to set custom Border for Chart data series elements?
1 min read
Using Border() method of an series.Style class, we can apply dashstyle, color for the border and also we can increase the width of the border.
C#
// Creating a series
ChartSeries series = this.chartControl1.Model.NewSeries("Series");
// Customize the series border
series.Style.Border.Color = Color.Red ;
series.Style.Border.DashStyle = DashStyle.Solid;
series.Style.Border.Width = 3;
VB
'Creating a series
Dim series As ChartSeries = Me.chartControl1.Model.NewSeries("Series")
'Customize the series border
series.Style.Border.Color = Color.Red
series.Style.Border.DashStyle = DashStyle.Solid
series.Style.Border.Width = 3