Category / Section
How to set Border for Chart Area?
1 min read
By using ChartAreaBorderStyle class, we can apply border styles, color for the border and also we can increase the width of the border.
C#
// Setting Border for the Chart Area
this.chartControl1.ChartArea.BorderStyle = BorderStyle.Fixed3D;
this.chartControl1.ChartArea.BorderColor = Color.LightPink;
this.chartControl1.ChartArea.BorderWidth = 2;
VB
' Setting Border for the Chart Area
Me.chartControl1.ChartArea.BorderStyle = BorderStyle.Fixed3D
Me.chartControl1.ChartArea.BorderColor = Color.LightPink
Me.chartControl1.ChartArea.BorderWidth = 2