Fix legend items position

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
franckgar
Advanced
Posts: 109
Joined: Thu Nov 04, 2004 5:00 am

Fix legend items position

Post by franckgar » Wed Feb 23, 2005 9:47 am

Hi,

What I want to have is a constant position of the items in the legend.
I explain myself: by default when I change the order of the traces during run-time in the TeeChart, the items in the legend also change.... and this is not what I want.

Is there any simple solution ?
Thanks
franckgar

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Wed Feb 23, 2005 10:43 am

Hi franckgar,

By now there's no simple solution. I've included your request to our wish list (TV52010452) to be considered for future releases.

A workaround could be creating a not visible chart, copying it's legend as an image and then putting it on the visible chart legend rect.

A more complex solution would be deriving your own chart from TChart.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

franckgar
Advanced
Posts: 109
Joined: Thu Nov 04, 2004 5:00 am

Fix legend items position

Post by franckgar » Wed Feb 23, 2005 1:17 pm

I've found a solution ..... but there is also a problem...
Each time I add a new trace (not shown on the legend) on the graph I add a copy of this trace but with no data (shown on the legend).
Now, even if the position of the main traces are changed, the position of the items on the legend will never be modified.

but now there is another problem ....

when I zoom one of the main trace, the increment of the bottom axis is never changed (due to the empty traces I think). I mean that if I see (0, 1, 2) before the zoom, I will never see subdivision (for instance 1.2, 1.3, 1.4).

any idea ?

Post Reply