Custom draggable marks with auto-scaling axis
Posted: Fri Sep 03, 2010 7:18 am
I am using Delphi 2007 and TeeChart Pro 8.06. I wish to position marks to the right of each point in a LineSeries (rather than above) and then allow them to be draggable. I clearly cannot use a Chart.OnAfterDraw event as this will be triggered whenever I try to drag the marks and reset them to the default position.
LineSeries.OnAfterAdd event (with a call to Chart.Draw) also doesn't work because subsequent data can change the axis scales, so the marks get drawn incorrectly.
I feel that the Chart.OnAddSeries event might be the place to do the mark positionsing but I don't seem to be able to get it to work - some conflict between TCustomChartSeries and TChartSeries !!! Any suggestions?
Thanks and regards
Errol
LineSeries.OnAfterAdd event (with a call to Chart.Draw) also doesn't work because subsequent data can change the axis scales, so the marks get drawn incorrectly.
I feel that the Chart.OnAddSeries event might be the place to do the mark positionsing but I don't seem to be able to get it to work - some conflict between TCustomChartSeries and TChartSeries !!! Any suggestions?
Thanks and regards
Errol