No control over Y axis labels for TCustomSeries?
Posted: Fri Aug 27, 2004 8:53 pm
Our code is relatively simple, we instantiate an instance of one of
the chart types
e.g.
TPointSeries* S = new TPointSeries(mChart);
where Chart::TChart* mChart;
do a minimal bit of setting parameters and then call AddXY() to
load the series
e.g.
S->AddXY(XValue, YValue, caption.c_str(), clTeeColor);
and finally show the graph
e.g.
S->ParentChart = mChart;
Another post recommends using either OnGetAxisLabel but this will not work when my Axis Labels are Values?
The other suggestion was to model after the 6.01 custom labels feature using: TChartAxis *axis = Chart1->Axes->Left;
but I do not see how to coerce S or mChart (in sample code above) to have Axes as a member.
the chart types
e.g.
TPointSeries* S = new TPointSeries(mChart);
where Chart::TChart* mChart;
do a minimal bit of setting parameters and then call AddXY() to
load the series
e.g.
S->AddXY(XValue, YValue, caption.c_str(), clTeeColor);
and finally show the graph
e.g.
S->ParentChart = mChart;
Another post recommends using either OnGetAxisLabel but this will not work when my Axis Labels are Values?
The other suggestion was to model after the 6.01 custom labels feature using: TChartAxis *axis = Chart1->Axes->Left;
but I do not see how to coerce S or mChart (in sample code above) to have Axes as a member.