When using
* (quite long) vertical (90deg) axis labels,
* with all capitals in them, and
* setting panel bottom margin to 0%
It happens that the axis labels get to long and drop off of the chart panel. I have implemented a little fix for
TChartAxis.MaxLabelsWidth
At the end of the function I add
// HH: 10% extra room for vertical labels. The caculated pixel length
// is not correct when using capitals.
if (LabelsAngle<>0) then
Result:=(Result*(1000 + round(100*abs(sin(LabelsAngle*PI/180.0))))) div 1000;
to fix this. Obviously, there should be a neater way to fix this. Check attachment for test application source. (Rad studio 2007)
Verticval bottom labels with Margin=0 causes display trouble
-
- Newbie
- Posts: 32
- Joined: Tue Jul 21, 2009 12:00 am
- Location: Nijmegen, Netherlands
Verticval bottom labels with Margin=0 causes display trouble
- Attachments
-
- TestTChart.zip
- (6.58 KiB) Downloaded 237 times
Re: Verticval bottom labels with Margin=0 causes display trouble
Hi Hans,
I've added this to the wish list to be revised for future releases (TV52014525).
I've added this to the wish list to be revised for future releases (TV52014525).
Best Regards,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |