[Lazarus] Specifying Y axis

Werner Pamler werner.pamler at freenet.de
Sat Aug 15 11:38:21 CEST 2015


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 at lists.lazarus.freepascal.org
> http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20150815/d6712a31/attachment-0003.html>


More information about the Lazarus mailing list