How to add and customize symbols in WinForms Chart?
To add symbols to a chart using Syncfusion® WinForms Chart, you can use the following code snippet:
C#
this.ChartWebControl1.Series[0].Style.Symbol.Shape = ChartSymbolShape.InvertedTriangle;
VB .NET
columnChart.Series(0).Style.Symbol.Shape = ChartSymbolShape.InvertedTriangle
You can also customize the color, size, and border width of the symbol with the following code:
C#
this.ChartWebControl1.Series[0].Style.Symbol.Color = Color.Red;
this.ChartWebControl1.Series[0].Style.Symbol.Size = new Size(15,15);
this.ChartWebControl1.Series[0].Style.Symbol.Border.Width = 2;
VB .NET
columnChart.Series(0).Style.Symbol.Color = Color.Red
columnChart.Series(0).Style.Symbol.Size = New Size(15, 15)
columnChart.Series(0).Style.Symbol.Border.Width = 2
Conclusion
I hope you enjoyed learning about how to add and customize symbols in WinForms Chart.
You can refer to our WinForms Chart feature tour page to know about its other groundbreaking feature representations and documentation, and how to quickly get started with configuration specifications. You can also explore our WinForms Chart examples to understand how to create and manipulate data.
For current customers, you can check out our components from the License and Downloads page. If you are new to Syncfusion®, you can try our 30-day free trial to check out our other controls.
If you have any queries or require clarifications, please let us know in the comments section below. You can also contact us through our support forums, Direct-Trac, or feedback portal. We are always happy to assist you!