Skip Menu |

This queue is for tickets about the URI-GoogleChart CPAN distribution.

Report information
The Basics
Id: 51083
Status: open
Priority: 0/
Queue: URI-GoogleChart

People
Owner: Nobody in particular
Requestors: mk [...] neon1.net
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 1.02
Fixed in: (no value)



Subject: chxr min/max rounded a bit too much
I found my line graphs with URI::GoogleChart 1.02 to be quite inaccurate, and traced this to line 395: $_ = sprintf "%.2g", $_; In one example, this resulted in "chxr=1,3e+03,3.2e+03" when the actual min/max range calculated by URI::GoogleChart was 3020..3160. Changing the line above to the following solved the problem: $_ = sprintf "%.5g", $_; Running perl v5.8.8, i386-freebsd-64int on FreeBSD 6.4-RELEASE-p3. Thanks!
I've hit this problem as well, and I can confirm the proposed change fixed it for me. I'd like to see this change applied. (A new release would be nice too :-) Tim.