Legend Alignment

TeeChart for ActiveX, COM and ASP
Post Reply
nbp
Newbie
Newbie
Posts: 24
Joined: Tue Apr 28, 2015 12:00 am

Legend Alignment

Post by nbp » Thu Jul 30, 2015 7:46 pm

I place my legend at the bottom of my chart. As I add more series and thus more custom axes, my legend gets resized. But I want it to display as many columns at possible, so as to be aligned with the right border of the chart panel. What is the legend property that will allow me to do this?
I've attached an image:
Legend.jpg
Image of Legend not aligned correctly
Legend.jpg (48.19 KiB) Viewed 9369 times

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

Re: Legend Alignment

Post by Narcís » Fri Jul 31, 2015 7:54 am

Hi nbp,

You can either try using Legend.NumCols property or the OnGetLegendRect event as explained in tutorial 5. TeeChart Pro ActiveX tutorials can be found at the Docs folder included with TeeChart's installation or at http://www.teechart.net/docs/.

If the problem persists please attach a simple example project we can run "as-is" to reproduce the problem here.

Thanks in advance.
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

Post Reply