Missing LegendStyle/TextStyle combination

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
TheRoadrunner
Newbie
Newbie
Posts: 17
Joined: Thu Dec 07, 2006 12:00 am
Location: Sønderborg, Denmark

Missing LegendStyle/TextStyle combination

Post by TheRoadrunner » Fri Jun 29, 2007 9:55 am

Hi

I need to show Series titles AND Last values in the legend when showing live data.

When switching to "inspection mode" I activate a Cursor ChartTool and the values under the cursor should be shown instead of Last Values.

I've done all the stuff, except getting the legends to look right.

I would like to use the columns-function of the legend, since OnGetLegendText does not support aligning of the numeric part and the title each on their own.

Hope you can help me out.

Søren

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

Post by Narcís » Fri Jun 29, 2007 10:02 am

Hello,

Sorry but I'm somewhat confused and I don't understand which is the exact problem here. Would you be so kind to give us some more information about the exact problem you are having?

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

TheRoadrunner
Newbie
Newbie
Posts: 17
Joined: Thu Dec 07, 2006 12:00 am
Location: Sønderborg, Denmark

Post by TheRoadrunner » Fri Jun 29, 2007 10:16 am

Hi Narcís

I basically want the legend to show pen color/style (as it does) on the left,
succeeded by Value (Last value or Cursor-value) with numeric alignment,
succeeded by Title aligned left under the other titles.

like this:

Image

"Is now" means what I can achieve with OnGetLegendText.

Best
Søren

Pep
Site Admin
Site Admin
Posts: 3295
Joined: Fri Nov 14, 2003 5:00 am
Contact:

Post by Pep » Mon Jul 02, 2007 12:30 pm

Hi Søren,

there's not a way to do this automatically, I've added this as a wish to be considered for further releases of TeeChart Pro ( allow to specify a legend column adding custom text, also having the alignment property).
For the moment a workaround is to calculate the space betweend both texts (last values and Series Title) manually. You can use the TextWidth method.

Post Reply