Problem with OnGetAxisLabel event
Posted: Thu Aug 17, 2017 11:58 am
Hello,
I've got an issue when using the OnGetAxisLabel.
I've got a couple of TLineSeries, created at runtime, with ParentChart assigned to Chart1 for instance.
Those Series are drawn correctly in Chart1.
But when the Chart1.OnGetAxisLabel(Sender : TChartAxis; Series: TChartSeries; ValueIndex: integer; var LabelText: string) events occur, Series is not assigned and ValueIndex is always equal to -1, whatever the actual position of LabelText.
I want to custom the new LabelText with Series.XValues and ValueIndex, but I failed in connecting the runtime series with the actual Chart axis...
Thanks for any help,
Regards,
Laurent
- Delphi6 / Teechart 7.04 -
I've got an issue when using the OnGetAxisLabel.
I've got a couple of TLineSeries, created at runtime, with ParentChart assigned to Chart1 for instance.
Those Series are drawn correctly in Chart1.
But when the Chart1.OnGetAxisLabel(Sender : TChartAxis; Series: TChartSeries; ValueIndex: integer; var LabelText: string) events occur, Series is not assigned and ValueIndex is always equal to -1, whatever the actual position of LabelText.
I want to custom the new LabelText with Series.XValues and ValueIndex, but I failed in connecting the runtime series with the actual Chart axis...
Thanks for any help,
Regards,
Laurent
- Delphi6 / Teechart 7.04 -