anirudhb029 / flot

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

An invalid or illegal string was specified" code: "12 #114

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Trying the setting-options example in svn rev132 on Firefox 3.0.6 (Linux)
gives the following :

An invalid or illegal string was specified" code: "12
  var gradient = ctx.createLinearGradient(0, top, 0, bottom);

The graph is not displayed, the legend and the x and y-axis are.

Original issue reported on code.google.com by achama...@gmail.com on 16 Feb 2009 at 2:10

GoogleCodeExporter commented 9 years ago
getColorOrGradient is called with only the spec and the bottom value, an no top 
value
is passed, causing the subsequent call to createLinearGradient to fail.

This happens on background painting, trivial correction in the attached patch.

A defaultColor value could also probably be picked and passed just in case.

Original comment by achama...@gmail.com on 16 Feb 2009 at 2:24

Attachments:

GoogleCodeExporter commented 9 years ago
Yep, thanks! Silly oversight. Fix is in with default color. That commit went 
too fast.

Original comment by olau%iol...@gtempaccount.com on 20 Feb 2009 at 3:12