anirudhb029 / flot

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

Background gradient problem #123

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hello,

Flot works great, but there seems to be an error when trying to set a gradient 
for grid backgrounds. 

When I add the grid option:

    backgroundColor: { colors: ["#000", "#999"] }

drawing the graph fails, generating the javascript error "Value undefined 
(result of expression E || "".replace) is not 
object."

This happens in both Safari 3.2.1 and Firefox 3, using JQuery 1.3.1.

Can someone provide a working example for how to use a gradient for the 
backround of a graph?

Thank you,

     -Stefan

Original issue reported on code.google.com by stefan.g...@gmail.com on 1 Mar 2009 at 11:41

GoogleCodeExporter commented 9 years ago
Did you try this one:

http://flot.googlecode.com/svn/trunk/examples/setting-options.html

Note: you need the SVN version for gradients to work.

Original comment by olau%iol...@gtempaccount.com on 2 Mar 2009 at 2:27

GoogleCodeExporter commented 9 years ago
I'm going to assume you tried the old version, please reopen if not.

Original comment by olau%iol...@gtempaccount.com on 22 Mar 2009 at 12:46

GoogleCodeExporter commented 9 years ago

Original comment by dnsch...@gmail.com on 4 Jun 2012 at 2:39