Delphi XE2, TChart 2012.07.121105 32bit (I know there is an update but the WMF rendering of charts is causing problems so I am using an old version for now)
In my attached demo, (1) the marks for the two series overlap and (2) the text for the last one cuts off the right side. How can I fix this? My customer is frustrated with me.
Thank you,
Ed Dressel
Series Marks Overlaps/Cuts off Right Side
-
- Newbie
- Posts: 6
- Joined: Thu Mar 14, 2013 12:00 am
Series Marks Overlaps/Cuts off Right Side
- Attachments
-
- Mark Text Cutoff and Overlap.zip
- (2 KiB) Downloaded 640 times
Re: Series Marks Overlaps/Cuts off Right Side
Hello Ed,
I can think on some different alternatives:
- For both (1) and (2), you could add a TDragMarksTool. Then, you customer can directly drag the marks and move them around to where he/she prefers. However, this is not an automatized way.
- For (2) you could simply add some extra margin in the right. If this has to be calculated automatically, you could force a chart repaint and then calculate the boundaries of the series marks, and if any of them is going to be drawn out of the chart boundaries, then you could increment the chart margin.
- For both (1) and (2), you could implement some algorithm to reposition the marks. Take a look at the following threads. They suggest solutions to avoid the overlapping, but it shouldn't be difficult to add some condition to also check the marks fit into the ChartRect boundaries.
http://www.teechart.net/support/viewtop ... ap*#p47893
http://www.teechart.net/support/viewtop ... ap*#p46555
http://www.teechart.net/support/viewtop ... 150#p57150
I can think on some different alternatives:
- For both (1) and (2), you could add a TDragMarksTool. Then, you customer can directly drag the marks and move them around to where he/she prefers. However, this is not an automatized way.
- For (2) you could simply add some extra margin in the right. If this has to be calculated automatically, you could force a chart repaint and then calculate the boundaries of the series marks, and if any of them is going to be drawn out of the chart boundaries, then you could increment the chart margin.
- For both (1) and (2), you could implement some algorithm to reposition the marks. Take a look at the following threads. They suggest solutions to avoid the overlapping, but it shouldn't be difficult to add some condition to also check the marks fit into the ChartRect boundaries.
http://www.teechart.net/support/viewtop ... ap*#p47893
http://www.teechart.net/support/viewtop ... ap*#p46555
http://www.teechart.net/support/viewtop ... 150#p57150
Best Regards,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |