Hi
I am trying trying trying to set my leftaxis label values to a field from my query, other than the fields used for the actual values.
Because i am creating these charts in a cgi application, i do not have an OnGetAxisLabel event.
Can anyone help me do this pleeeeease?????
I tried making a function within my web action thus:
but of course this doesnt work
help
pleeeeze
cheers
Tracey![[hippy] [hippy] [hippy]](/data/assets/smilies/hippy.gif)
I am trying trying trying to set my leftaxis label values to a field from my query, other than the fields used for the actual values.
Because i am creating these charts in a cgi application, i do not have an OnGetAxisLabel event.
Can anyone help me do this pleeeeease?????
I tried making a function within my web action thus:
Code:
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;
later....
GetAxisLabel(FChart.LeftAxis, HorizBarSeries, 1, StringVar);
but of course this doesnt work
help
pleeeeze
![[cry] [cry] [cry]](/data/assets/smilies/cry.gif)
![[curse] [curse] [curse]](/data/assets/smilies/curse.gif)
cheers
Tracey
![[hippy] [hippy] [hippy]](/data/assets/smilies/hippy.gif)