Series Marks Overlaps/Cuts off Right Side

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
Test Always
Newbie
Newbie
Posts: 6
Joined: Thu Mar 14, 2013 12:00 am

Series Marks Overlaps/Cuts off Right Side

Post by Test Always » Fri Feb 14, 2014 6:09 pm

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
Attachments
Mark Text Cutoff and Overlap.zip
(2 KiB) Downloaded 630 times

Yeray
Site Admin
Site Admin
Posts: 9602
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: Series Marks Overlaps/Cuts off Right Side

Post by Yeray » Mon Feb 17, 2014 10:25 am

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
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Post Reply