Customizing the Legend
Posted: Wed Apr 07, 2004 5:18 pm
I have a TPointSeries in a chart that contains other series (TMapSeries).
I add XY points to on TPointSeries and use one of 5 colors for each point in the series.
I would like the legend to not show the other series, just the TPointSeries and always have 5 items in the legend, one for each color in the TPointSeries, with text that I set. So how do I:
1) Always have 5 items in the legend?
2) Custom draw the same symbol with the correct color that the TPointSeries is using in the TChart.legend.Symbol.OnDraw event (assuming I use that event).
The TExtraLegendTool, but this doesn't allow the level of customization I want (or at least it wasn't obvious to me) and didn't have any events. Maybe I am missing the obvious?
Thanks
Ed Dresel
I add XY points to on TPointSeries and use one of 5 colors for each point in the series.
I would like the legend to not show the other series, just the TPointSeries and always have 5 items in the legend, one for each color in the TPointSeries, with text that I set. So how do I:
1) Always have 5 items in the legend?
2) Custom draw the same symbol with the correct color that the TPointSeries is using in the TChart.legend.Symbol.OnDraw event (assuming I use that event).
The TExtraLegendTool, but this doesn't allow the level of customization I want (or at least it wasn't obvious to me) and didn't have any events. Maybe I am missing the obvious?
Thanks
Ed Dresel