Hi
I have dynamically created a Chart, with
3 HorizBarSeries which are mbStacked.
What I now need to figure out is how to
set the Left Axis labels to display the contents of another field returned by my
query for that record.
does anyone know how to do this without
affecting the data values?
The closest i have come to success so
far is:
procedure GetAxisLabel(Sender:
TChartAxis;
Series: TChartSeries; ValueIndex: Integer; var LabelText: string); begin if Sender = FChart.LeftAxis then if ValueIndex < 1 then LabelText := '' else LabelText := IBQuery1.FieldByName('system').AsString; end; WebActionWhatever;
begin
stuff
GetAxisLabel(LeftAxis, HorizBarSeries,
1,
'any old string'); end;
But I keep getting a compile error :
constant object cannot be passed as a var parameter.
Anyone here know how to acheive
this??
|
- Re: [DUG]: TChart Set LeftAxis Labels Tracey Maule
- Re: [DUG]: TChart Set LeftAxis Labels Chris Reynolds
- RE: [DUG]: TChart Set LeftAxis Labels Chris Veale
- RE: [DUG]: TChart Set LeftAxis Labels Allan Vergara
- Re: [DUG]: TChart Set LeftAxis Labels Todd Martin
- Re: [DUG]: TChart Set LeftAxis Labels Tracey Maule
- Re: Re: [DUG]: TChart Set LeftAxis Labels Chris Reynolds
- Re: Re: [DUG]: TChart Set LeftAxis Labels Tracey Maule