PhenX / flotr

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

invalid or illegal string was specified" code: "12 #182

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Create a sample chart with empty series
2. Flotr.draw(chart, [{"label":"foo","data":[]},{"label":"bar","data":[]}};);
3. Load the page with Firefox 4.0

What is the expected output? What do you see instead?
I get the following error message:

Load the page and see invalid or illegal string was specified"  code: "12

instead of viewing an empty chart.

What version of the product are you using? On what operating system?
Firefox 4.0
Mootools 1.3.1
Ubuntu maverick

For now I fixed it by adding the following condition in drawGrid function 
(around line 1021):

if (!v)
  continue;

Original issue reported on code.google.com by alexis....@gmail.com on 27 Apr 2011 at 2:36