This file contains invisible Unicode characters that may be processed differently from what appears below. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to reveal hidden characters.
<html><head><metahttp-equiv="Content-Type"content="text/html; charset=UTF-8"><title>Getting the scale and labels right</title><linkrel="stylesheet"type="text/css"href="manual.css"><metaname="generator"content="DocBook XSL Stylesheets V1.76.0"><linkrel="home"href="index.html"title="JpGraph Manual"><linkrel="up"href="ch35s03.html"title="The Init() method"></head><bodybgcolor="white"text="black"link="#0000FF"vlink="#840084"alink="#0000FF"><divclass="navheader"><tablewidth="100%"summary="Navigation header"><tr><thcolspan="3"align="center">Getting the scale and labels right</th></tr><tr><tdwidth="20%"align="left"></td><thwidth="60%"align="center">The Init() method</th><tdwidth="20%"align="right"></td></tr></table><hr></div><divclass="section"title="Getting the scale and labels right"><divclass="titlepage"><div><div><h2class="title"style="clear: both"><aname="id2622163"></a>Getting the scale and labels right</h2></div></div></div>
<p>For this type of graph we have manually set the distance between each tick
label to 25 units. This would put labels as 0,25,50, and so on. The maximum
value (the user specifies) will be adjusted so that it is always an even
multiple of 25 to allow the last tick mark to be at the end of the axis.</p>
<p>As can be seen from the previous images we are using one feature that hasn't
been previously exemplified and that is the possibility to have unique colors on
each label on the scale. We use this for the x-scale by having the negative
labels in black and the positive labels in white. The reason is purely
functional to allow the scale labels to be more easy to read against the colored
background.</p>
<p>The color of the labels are specified as the second argument to </p>