sangltdn / flot

Automatically exported from code.google.com/p/flot
MIT License
0 stars 0 forks source link

Error in flot.js after implementing threshold on bar series #261

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Bar series type causes error:

An invalid or illegal string was specified" code: "12
c.moveTo(left, bottom);

jquery.flot.js (line 1649)

...
{
     threshold: { below: 100, color: "rgba(255, 120, 63, 0.5)" },
     data: d[0],
     bars: { show: true, fill: true, lineWidth: 0, barWidth: 1000 * 60 * 60
* 24 * 22 },
     color: "rgb(200, 220, 63)",
     label: 'Complete Data (%)'
},
...

Original issue reported on code.google.com by davidm...@gmail.com on 16 Nov 2009 at 1:01

GoogleCodeExporter commented 9 years ago
Bugfix: add the following lines:

                for (m = 2; m < ps; ++m)
                    p.push(origpoints[i + m]);

after line 82, so it looks like that:

79                }
80
81                p.push(x);
82                p.push(y);
83                for (m = 2; m < ps; ++m)
84                    p.push(origpoints[i + m]);
85            }

Original comment by erich.ki...@gmail.com on 26 Sep 2011 at 8:53

GoogleCodeExporter commented 9 years ago

Original comment by dnsch...@gmail.com on 5 Jun 2012 at 4:05