Info: Open Flash Chart 2 is out. Version 1.x and these pages will
never disappear and the charts will continue working forever, but further
development on 1.x has stopped. Take a look at version 2 here
Open Flash Chart 2.
Gallery - Y Axis Labels
Change the Y axis label steps, tick size and axis colour.
set_y_max( $max )
y_label_steps( $val )
$max integer, max value on Y axis.
$val integer, label every $val steps.
The chart elements will resize themselves to accomodate the Y axis labels.
Steps are the number of labels to show. So if set_y_max(20) and y_label_steps(5) then the chart will label
the Y axis with 0,4,8,12,16,20. It is better to choose a round number for the Y max value, and set
the steps so they are also calculated to be rounded numbers. This makes the chart easier for people
Another way to think of this is, 10/10 = label every 1, 10/5 = label every 2nd, 9/3 = label every 3rd.
The reason the steps are calculated in this way is a bit boring and technical. All it does is reduce the
chance that through a small mistake you don't label every single value, from 0 to a million and crash
the flash plug in (like I did a few times when developing Open Flash Chart.)