youcef92 / flotr

Automatically exported from code.google.com/p/flotr
0 stars 0 forks source link

toFixed getting parameter out of bounds error in Chrome #105

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Not specifically sure what it was in the data but I was occasionally
getting Javascript errors in Google Chrome.  Eventually, using Chrome's
Developer tools, I found that the problem was a .toFixed parameter out of
range and the problem was in flotr-0.2.0-alpha.js

What version of the product are you using? On what operating system?
Problem was found under MS Windows on Google Chrome

Please provide any additional information below.

The correction below seems to fix the problem...
current: if(C<0){C=0}H=H.toFixed(C)
corrected: if(C==null||C<0){C=0}H=H.toFixed(C)

Original issue reported on code.google.com by al.caughey on 9 Dec 2009 at 5:30

GoogleCodeExporter commented 8 years ago
I couldn't find the source code you quoted. I close this issue, please post 
here if the problems still appears.

Original comment by fabien.menager on 16 Jul 2010 at 8:27