Customizing scale labels
By default, the scale labels are numbers ranging between a minimum and maximum
values, against which series data points are sequentially plotted. Scale labels
can be customized using the parameter graphsetx_scalelabels, in which case
the numbers are fully replaced by the sequence of strings passed to this parameter.
The customized labels are placed from top to bottom or from left to right, if chart
orientation is vertical or horizontal, respectively.
The example of the previous topic was modified to display customized labels,
prefixing values with the US dollar sign. The parameter graphsetx_scalevalueformat
could be easily configured to insert a currency sign in the value pattern. In this case, however,
we are using the parameter graphsetx_scalelabels for instructive purpose only.
<applet code="GraphApplet.class" codebase="../../demo/applets/classes" archive="GraphChart.jar" width=450 height=300>
<param name="title" value="The JetChart Library,Customizing scale labels">
<param name="labels" value="l1,l2,l3,l4,l5,l6,l7,l8,l9">
<param name="graphset0_autoscaleon" value="no">
<param name="graphset0_scalemaxvalue" value="20010">
<param name="graphset0_scaleminvalue" value="20000">
<param name="graphset0_scaleincrement" value="2">
<param name="graphset0_scalelabels" value="US$ 20010,US$ 20008,US$ 20006,US$ 20004,US$ 20002,US$ 20000">
<param name="graphset0_gridon" value="yes">
<param name="graphset0_gridcolor" value="999999">
<param name="graphset0_gridstyle" value="1">
<param name="serie1" value="area,Area series,009900">
<param name="serie1_values" value="20007,20005,20006,20004,20003,20005,20007,20009,20006">
<applet>