You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This example demonstrates how to customize series border for chart in Windows Forms.
1
+
# How to customize series border in WinForms Chart
2
+
3
+
This example demonstrates how to customize series border for chart in Windows Forms.
4
+
5
+
You can customize the border color and border width for chart series. The default value of the border color is black and border width is 1. You can also customize the specific series points border based on the point index.
6
+
7
+
The following code snippet demonstrates how to apply the border style to overall chart series points.
8
+
9
+
```
10
+
// Set border for to chart series.
11
+
series.Style.Border.Width = 3;
12
+
series.Style.Border.Color = Color.Red;
13
+
```
14
+
15
+

16
+
17
+
The following code snippet demonstrates how to apply the border style to specific points in chart series.
18
+
19
+
```
20
+
// Set border style to specific chart series.
21
+
series.Styles[1].Border.Width = 3;
22
+
series.Styles[1].Border.Color = Color.Red;
23
+
```
24
+
25
+

26
+
27
+
You can avoid the borders in series cells by setting the border’s color as “transparent” in series’ style as demonstrated in the following code snippet.
28
+
29
+
```
30
+
// Set the border color to transparent to avoid the borders for series.
31
+
series.Style.Border.Color = Color.Transparent;
32
+
```
33
+
34
+

35
+
36
+
KB article - [How to customize series border in WinForms Chart](https://www.syncfusion.com/kb/10149/how-to-customize-series-border-in-chart)
0 commit comments