A key difference between Apache-GD-Graph and plain-old GD-Graph is that I haven't found a way to get Apache-GD-Graph to use a subroutine to control the appearance of the numbers on the y axis.
In GD-Graph this is done by defining a subroutine and assigning it to the "y_number_format" attribute.