Re: [Lazarus] Specifying Y axis

2015-08-17 Thread Werner Pamler
There are (at least) two solutions: #1: Select Chart.LeftAxis. Go to "Intervals", set "Count" to 2, and modify "Options" such that only "aipUseCount" and "aipUseNiceSteps" are active. Write an event handler for "OnMarkToText" of the LeftAxis: "if AMark = 0 then AMarkText := 'FALSE' else if AMar

Re: [Lazarus] Specifying Y axis

2015-08-16 Thread Richard Mace
On 15 August 2015 at 10:38, Werner Pamler wrote: > 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. > ​Thanks Werner, That works grea

Re: [Lazarus] Specifying Y axis

2015-08-15 Thread Werner Pamler
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 displ

[Lazarus] Specifying Y axis

2015-08-14 Thread 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 Ri