Hi All,
I've created 32 line graphs with
GD and
GD::Graph that update with new data every 15 minutes. I'm pretty happy with them with a few exceptions.
One problem is with the y-axis when I have y values that include negative and positive values. I'm not setting the
y_tick_number,
y_label_skip,
y_max_value, or
y_min_value. I'm letting
GD::Graph take care of that and it works well for the majority of the graphs.
The problem occurs when I have y values that range from say -0.6 to 0.4. The y ticks get labeled
0.4
0.2
-1.11022302462516e-16
-0.2
-0.4
-0.6.
I understand that the really small value is an approximation of zero and probably has something to do with rounding. However, it is unacceptable on a graph. Besides being an odd looking number, it takes up a lot of space and squishes the graph to the right.
I haven't been able to find any references to this problem. Any suggestions on how to fix it?
Thanks