Show legend with 2 columns and 3 rows.

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
amol
Advanced
Posts: 231
Joined: Tue Mar 29, 2005 5:00 am

Show legend with 2 columns and 3 rows.

Post by amol » Tue Mar 29, 2016 10:03 am

Hi Steema Support,
Kindly suggest how to show series in legend with 2 column and 3 rows.
Currently it is showing like figure 1. But we want to show legend like figure 2.
(Figure: 1):-
Legend.png
figure1
Legend.png (1.52 KiB) Viewed 11358 times
The legend has 2 columns and 3 rows like below Figure 2.
(Figure: 2):-
Legend2.png
Figure2
Legend2.png (3.31 KiB) Viewed 11351 times
NOTE: The size and rows/columns of legend will not change when change the size of Tee chart.

Thanks & Regards
Plano Research corporation

Christopher
Guru
Posts: 1603
Joined: Fri Nov 15, 2002 12:00 am

Re: Show legend with 2 columns and 3 rows.

Post by Christopher » Wed Mar 30, 2016 10:41 am

amol wrote: Kindly suggest how to show series in legend with 2 column and 3 rows.
I have just added a feature request (first for VCL, which will then be ported to .NET) for Row and Column properties for Legend: id=1483

Until this request is implemented you can draw your own legend using TeeChart's AfterDraw() event.
Best Regards,
Christopher Ireland / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Instructions - How to post in this forum

amol
Advanced
Posts: 231
Joined: Tue Mar 29, 2005 5:00 am

Re: Show legend with 2 columns and 3 rows.

Post by amol » Wed Mar 30, 2016 11:29 am

Hi Steema,

Thanks for your reply.

Please suggest how to draw our own legend using TeeChart's AfterDraw() event. So kindly give any demo for the same.

Thanks in advance.

Thanks
PlanoResearch

amol
Advanced
Posts: 231
Joined: Tue Mar 29, 2005 5:00 am

Re: Show legend with 2 columns and 3 rows.

Post by amol » Wed Mar 30, 2016 11:43 am

Hi steema,

we are using version of Tchart shown in attached image.
11.png
version name
11.png (76.23 KiB) Viewed 11342 times

Thanks,

Christopher
Guru
Posts: 1603
Joined: Fri Nov 15, 2002 12:00 am

Re: Show legend with 2 columns and 3 rows.

Post by Christopher » Wed Mar 30, 2016 1:44 pm

amol wrote: Please suggest how to draw our own legend using TeeChart's AfterDraw() event. So kindly give any demo for the same.
There's a simple example of how to do this in the second code snippet in Marc's post here.
Best Regards,
Christopher Ireland / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Instructions - How to post in this forum

Post Reply