Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Set label value on dynamic chart

Status
Not open for further replies.

Tracey

Programmer
Oct 16, 2000
690
NZ
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:

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] [curse]

cheers

Tracey [hippy]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top