I have a Delphi Tchart designed and working great. The problem is that the customer has now called and wants us to make the bottom range a set value instead of having it automatically set based on the data fed to the chart.
Is there a way to set the bottom range to say 1000 and have the graph just stop at whatever point its time ends? ie: If I've only logged 500 hours then the chart would move across to the middle of the graph and just stop with the last point in the middle of the graph?
Thanks,
glenn
TChart botton range of graph
Hi, Glenn.
In case you want to manually set axis range, this can be done by using axis SetMinMax method. For example:
In case you want to manually set axis range, this can be done by using axis SetMinMax method. For example:
Code: Select all
var StartPoint,Range : double;
StartPoint := 0.0;
Range := 1000.0;
With Chart1.Axes.Bottom do
begin
Automatic := False;
Increment := Range / 10; // show 10 labels, just an example
SetMinMax(StartPoint, StartPoint+Range);
end;
Marjan Slatinek,
http://www.steema.com
http://www.steema.com
Hi glenn,
ok, yes this will do the same, but in the TeeChart Pro v6 we've introduced a new property (Chart.Axes.) which we recommend to use it instead.
Josep Lluis Jorge
http://support.steema.com
ok, yes this will do the same, but in the TeeChart Pro v6 we've introduced a new property (Chart.Axes.) which we recommend to use it instead.
Josep Lluis Jorge
http://support.steema.com