Page 1 of 1

Multiple legend based on custom y axis

Posted: Fri Aug 28, 2009 8:20 am
by 9346725
Hi,
Is it possible to add multiple legends based on the number of series and number of custom y axis?
Please look at the image below -
MultipleLagendWithCustom ver axis.PNG
MultipleLagendWithCustom ver axis.PNG (12.43 KiB) Viewed 4936 times
In that image i have 10 series with 10 custom y axis of equal size. So i have 10 lagend control each showing the name of the series and high and low value just below the series name.Between each legend there is a separator.
One more example - suppose i have 10 series but have 5 custom axis each axis having 2 series each, then in that case i will show 5 lagends each legend will have information about the 2 serieses. The size of the legend also should be matched with the size of the custom y axis.
I have gone through the Multiple Legend example but still confused. I am new in c# coding so need help in these things.
Thanks for your help in advance.

Re: Multiple legend based on custom y axis

Posted: Fri Aug 28, 2009 10:33 am
by narcis
Hi Nitin,

The easiest way I can think of to achieve that is using Rectangle tools. You'll find a simple example of its usage at All Features\Welcome !\Tools\Rectangle Tool in the features demo available at TeeChart's program group.

Re: Multiple legend based on custom y axis

Posted: Fri Aug 28, 2009 12:51 pm
by 9346725
But is it possible to add other control like checkbox or button inside the Rectangle tool??

Re: Multiple legend based on custom y axis

Posted: Fri Aug 28, 2009 1:10 pm
by narcis
Hi Nitin,

I'm afraid not. In that case multiple legends is the way to go. You can make a loop through all chart series and create a legend for each one setting legend's custom position based on each series custom axis positions.

Hope this helps!