How to customize the series text in WinForms Chart?
Using the ChartStyleInfo class, you can customize the series text in a WinForms Chart. By enabling the DisplayText property, you can display the series text. Additionally, you can modify the series text by setting the font styles, text color, and text alignment.
// Enabling Series Text
this.chartControl1.Series[0].Style.DisplayText = true;
//Customize the series text
this.chartControl1.Series[0].Style.Font.Facename = "Times New Roman";
this.chartControl1.Series[0].Style.Font.FontStyle = FontStyle.Bold;
this.chartControl1.Series[0].Style.TextColor =Color.Blue;
' Enabling Series Text
Me.chartControl1.Series(0).Style.DisplayText = True
'Customize the series text
Me.chartControl1.Series(0).Style.Font.Facename = "Times New Roman"
Me.chartControl1.Series(0).Style.Font.FontStyle = FontStyle.Bold
Me.chartControl1.Series(0).Style.TextColor =Color.Blue
Conclusion
I hope you enjoyed learning about how to customize the series text 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!