
Index
Date: Thu, 21 Jun 2007 16:19:06 +0200
From: Barry
Subject: Re: X and Y Scale for AddXY Line Graph
Newsgroup: public.teechart5.cppbuilder
OK I have worked how to do it via the TChart Editor, by selecting
"values" under
Axis / Bottom / Labels / Value
Now my question is how to do it at runtime?
Thanks
Barry
Barry wrote:
> With reference to the description and code below, how do I get rid of
> the Label, on the X Axis and get an automatic scale, based on the array
> of numbers supplied to the Series (like I get on the Y axis).
>
> AddXY seems to require a label, which just obliterates my X Scale,
> seeing as though I have 1000 XY data points plotted on my Line Graph,
> and it repeats that same label 1000 times on the X Scale.
>
> All I want is an autoscale, the way I get on the Y scale.
>
> Barry
>
>
> +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
> TChartSeries.AddXY
> TChartSeries
> function AddXY(Const AXValue, AYValue: Double; Const ALabel: String;
> AColor: TColor): Integer; virtual;
>
> Unit
> TeEngine
>
> Description
> This function inserts a new point in the Series.
> The new point has X and Y values.
>
> The ALabel parameter is optional (can be empty '').
> The AColor parameter is optional (can be clTeeColor).
> The function returns the new point position in the Values list.
>
> Series1.AddXY( 123, 456, 'Hello', clGreen );
>
> ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++