Page 1 of 1

Fix legend items position

Posted: Wed Feb 23, 2005 9:47 am
by 9339785
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

Posted: Wed Feb 23, 2005 10:43 am
by narcis
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.

Fix legend items position

Posted: Wed Feb 23, 2005 1:17 pm
by 9339785
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 ?