Chart1.Extent.YMax := 1;
Chart1.Extent.YMin := 0;
Chart1.Extent.UseYMax := true;
Chart1.Extent.UseYMin := true;

Call this before or after adding data to the series, or set it in the object inspector.

Am 15.08.2015 um 07:15 schrieb Richard Mace:
Hi,
I have a line graph that only needs to display 0's and 1's however, when the first 0 is plotted, the Y axis is set-up as the lowest mark being -1, then goes up through 0 to then be +1. How can I set the graph up to say that the lowest mark would be 0 and the highest would be 1?

Many thanks

Richard


--
_______________________________________________
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

--
_______________________________________________
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply via email to