[TeeChart 2015.14.150120]
I've a Gantt-Chart so the x axis is date based. I would need to mark time periods in the chart. So i.e. mark 2009 -2011 describing it with a certain description, 2011-2013 with another name ...
- I wasn't able anymore to click the Chart-Entries (even if the tool was marked as "behind"
- I could not show a description of the period.
So I've tried to use TColorLineTool which worked better (almost perfect) but:
- the text panels for differnt period where shown at the same (vertical) position, so they overlapped some times.
- When the last TextPanel was longer then the remaining part of the chart, it "dropped" out, the Chart was not redimensioned in order to show the Panel within the Diagram.
So, now I had another Idea: to use different series to build one line over the whole width of the chart, each series for one period to show. But I would have to show the description of these series in extra Legends (TExtraLegendTool) in oder to have space enough for the texts. But I couldn't get the TExtraLegendTool shown. I assume there is a bug in that version of TeeChart since also the demo put by the installer doesn't show that tool.
Now I'm rather at a loss how to go on. Anybody has an idea?
I've given a try at the first approach:
And I think it works fine for me here. This is how it looks and below the code I used. Note I disabled the
TColorBandTool
'sAllowDrag
,ResizeStart
andResizeEnd
properties.