Page 1 of 1

Missing LegendStyle/TextStyle combination

Posted: Fri Jun 29, 2007 9:55 am
by 9348284
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

Posted: Fri Jun 29, 2007 10:02 am
by narcis
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.

Posted: Fri Jun 29, 2007 10:16 am
by 9348284
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

Posted: Mon Jul 02, 2007 12:30 pm
by Pep
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.