<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    There are (at least) two solutions:<br>
    <br>
    #1:<br>
    Select Chart.LeftAxis. Go to "Intervals", set "Count" to 2, and
    modify "Options" such that only "aipUseCount" and "aipUseNiceSteps"
    are active.<br>
    Write an event handler for "OnMarkToText" of the LeftAxis: "if AMark
    = 0 then AMarkText := 'FALSE' else if AMark = 1 then AMarkText :=
    'TRUE';"<br>
    <br>
    #2:<br>
    Add a ListChartSource to the form, Double-click on its property
    "DataPoints". In line 1 of the "DataPoint Editor" set Y=0, Text
    ='FALSE' (the other fields can be empty)<br>
    Cursor cown to add a new line: in line 2 enter Y = 1, Text = 'TRUE'<br>
    Link the ListChartSource to the property "Source" of the
    Chart.LeftAxis.Marks.<br>
    Set the "Style" of the Chart.LeftAxis.Marks to "smsLabel".<br>
    <br>
    <br>
    <div class="moz-cite-prefix">Am 16.08.2015 um 21:40 schrieb Richard
      Mace:<br>
    </div>
    <blockquote
cite="mid:CAK+KT390YH6W9FrDgr0AqiaFJTN8f25duKzygObvvUiaU+b+7Q@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div class="gmail_default"
          style="font-family:arial,helvetica,sans-serif"><span
            style="font-family:arial,sans-serif">On 15 August 2015 at
            10:38, Werner Pamler </span><span dir="ltr"
            style="font-family:arial,sans-serif"><<a
              moz-do-not-send="true"
              href="mailto:werner.pamler@freenet.de" target="_blank"
              onclick="window.open('https://mail.google.com/mail/?view=cm&tf=1&to=werner.pamler@freenet.de&cc=&bcc=&su=&body=','_blank');return
              false;"><a class="moz-txt-link-abbreviated" href="mailto:werner.pamler@freenet.de">werner.pamler@freenet.de</a></a>></span><span
            style="font-family:arial,sans-serif"> wrote:</span><br>
        </div>
        <div class="gmail_extra">
          <div class="gmail_quote">
            <blockquote class="gmail_quote" style="margin:0 0 0
              .8ex;border-left:1px #ccc solid;padding-left:1ex">
              <div bgcolor="#FFFFFF" text="#000000"> Chart1.Extent.YMax
                := 1;<br>
                Chart1.Extent.YMin := 0;<br>
                Chart1.Extent.UseYMax := true;<br>
                Chart1.Extent.UseYMin := true;<br>
                <br>
                Call this before or after adding data to the series, or
                set it in the object inspector.</div>
            </blockquote>
            <div><br>
            </div>
            <div>
              <div class="gmail_default"
                style="font-family:arial,helvetica,sans-serif">​Thanks
                Werner, That works great.</div>
              <div class="gmail_default"
                style="font-family:arial,helvetica,sans-serif">I've now
                got a the 0 as Min and the 1 as Max, however, it's also
                showing a 0.5 in the middle.</div>
              <div class="gmail_default"
                style="font-family:arial,helvetica,sans-serif">Any idea
                how I can remove that?</div>
              <div class="gmail_default"
                style="font-family:arial,helvetica,sans-serif"><br>
              </div>
              <div class="gmail_default"
                style="font-family:arial,helvetica,sans-serif">Also, is
                it possible to actually replace the 0 and 1 for words
                such as "true" and "false"?</div>
              <div class="gmail_default"
                style="font-family:arial,helvetica,sans-serif"><br>
              </div>
              <div class="gmail_default"
                style="font-family:arial,helvetica,sans-serif">Thanks</div>
              <div class="gmail_default"
                style="font-family:arial,helvetica,sans-serif"><br>
              </div>
              <div class="gmail_default"
                style="font-family:arial,helvetica,sans-serif">Richard​</div>
            </div>
          </div>
          <br>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">--
_______________________________________________
Lazarus mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Lazarus@lists.lazarus.freepascal.org">Lazarus@lists.lazarus.freepascal.org</a>
<a class="moz-txt-link-freetext" href="http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus">http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>