Hello,
I'm trying to use a number of pie or TDonutSeries styles but I'm having problems with the Marks label. I would like to use the label rotation as well depending on the pie rotation angle.
Its seems the the mark label for a segment draws with the right hand side of the label in the centre of the segment. I would like to move the label so that it is centered in the segment.
I've attached an example of a pie chart drawing the label not centered in a segment. In this example the Total angle = 90, circle = true, Rotation = 45
Any ideas ?
Pie mark label location not centered to segment
Pie mark label location not centered to segment
- Attachments
-
- pie-label.png (12.76 KiB) Viewed 6111 times
Re: Pie mark label location not centered to segment
Hi,
You could modify the marks positions manually calculating the desired positions in a similar way than in the following threads:
http://www.teechart.net/support/viewtop ... 589#p61589
http://www.teechart.net/support/viewtop ... 643#p45643
In your case, you'll have to use some properties like XRadius, YRadius, Angles.MidAngle and AngleToPos function to calculate the desired position
You could modify the marks positions manually calculating the desired positions in a similar way than in the following threads:
http://www.teechart.net/support/viewtop ... 589#p61589
http://www.teechart.net/support/viewtop ... 643#p45643
In your case, you'll have to use some properties like XRadius, YRadius, Angles.MidAngle and AngleToPos function to calculate the desired position
Best Regards,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |
Re: Pie mark label location not centered to segment
Thanks.
That got me on the right track, TSeriesMarkPosition* tsp->Custom = true, was a key for me
That got me on the right track, TSeriesMarkPosition* tsp->Custom = true, was a key for me