I have two series in my chart which i show in a legend, that works fine.
Then i add a colorline to the chart, of which the x-axis has a datetime scale, which represents an important date (f.e. a deadline). I would like to show the user in the legend that that colorline represents f.e. 'Deadline'. However, the colorline doesn't have the "showinlegend" property, like the series, and i can't find another way of adding this to the legend (even not with the OnGetLegendText event)
Since i didn't succeed there, i tried to give my colorline a description hoping it would show in the x-axis, but this property is readonly
Can anybody give me a hint on how i can show my users what a colorline means ?
My other option is write my own legend in HTML, but i would like to do all the charting stuff with teechart.
Thanks in advance.
How to 'name' a Colorline ?
-
- Newbie
- Posts: 7
- Joined: Fri Nov 15, 2002 12:00 am
- Location: Delft - the Netherlands
- Contact:
Hi.
How about adding another "fake" line series to chart and use it only as display item in chart legend ? Or alternatively, use the legend formatting tChart events to add custom legend item. I'd use the first approach because the end result will be color line + series title shown in legend.
How about adding another "fake" line series to chart and use it only as display item in chart legend ? Or alternatively, use the legend formatting tChart events to add custom legend item. I'd use the first approach because the end result will be color line + series title shown in legend.
Marjan Slatinek,
http://www.steema.com
http://www.steema.com
-
- Newbie
- Posts: 7
- Joined: Fri Nov 15, 2002 12:00 am
- Location: Delft - the Netherlands
- Contact: