How to align points label in a chart series programmatically?

Hello,

I know how to set alignment for the chart points using the chart wizard like below:


I want to ask how to do the same programmatically as I can't able to find the properties responsible for the chart points label alignment.?

Thank you.

3 Replies 1 reply marked as answer

SM Saravanan Madheswaran Syncfusion Team March 17, 2021 06:23 PM UTC

Hi shankul, 
 
Greetings form Syncfusion support. 
 
We would like to let you know that we can achieve the same by programmatically using the TextOrientation of ChartSeries.Style.  
 
chartSeries1.Style.DisplayText = true; //show label 
chartSeries1.Style.Font.Facename = "Microsoft Sans Serif"; // font family 
chartSeries1.Style.Font.Orientation = 90; //label rotation 
chartSeries1.Style.TextColor = System.Drawing.SystemColors.Desktop; // font color 
chartSeries1.Style.TextOrientation = Syncfusion.Windows.Forms.Chart.ChartTextOrientation.Up; //Label Alignment. 
 
 
Regards, 
Saravanan. 


Marked as answer

SG shankul gupta March 18, 2021 04:28 AM UTC

Hello,

Thanks for helping, I literally visited the documentation number of time and I don't know how it missed my eyes, Its working...

Thank you.


YP Yuvaraj Palanisamy Syncfusion Team March 19, 2021 09:13 AM UTC

Hi Shankul,

Thanks for your update.

Please let us know if you have any concern.

 
Regards, 
Yuvaraj. 


Loader.
Up arrow icon