Multiple lines of text for each Series in Legend

TeeChart for ActiveX, COM and ASP
Post Reply
tirby
Newbie
Newbie
Posts: 84
Joined: Mon Mar 16, 2009 12:00 am

Multiple lines of text for each Series in Legend

Post by tirby » Tue Mar 12, 2013 10:36 pm

Hi,

I am trying to setup the Legend in such a way that it displays 2 lines. example:

Pressure
1000


Where the first Line is the Series Name, and the second line is the LeftAxis maximum height.
What I don't want is this:

Pressure 1000

Anyone have an idea?

Thanks!

Yeray
Site Admin
Site Admin
Posts: 9614
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: Multiple lines of text for each Series in Legend

Post by Yeray » Wed Mar 13, 2013 8:41 am

Hello,

The easiest way to do this is to add two dummy series (empty) with the according titles "Pressure" for the first and "1000" for the second. Then, you could hide the "real" series (the series you already have with data) from the legend with ShowInLegend=false
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

tirby
Newbie
Newbie
Posts: 84
Joined: Mon Mar 16, 2009 12:00 am

Re: Multiple lines of text for each Series in Legend

Post by tirby » Mon Mar 18, 2013 1:03 am

Thanks Yeray,

Although that was not what I had in mind, I'll skip this for now.

Post Reply