javascript - JQPlot pie chart throwing "Unable to get value of the property '0': object is null or undefined" error -



javascript - JQPlot pie chart throwing "Unable to get value of the property '0': object is null or undefined" error -

i'm using jquery based charting library jqplot (and pie chart plugin it) generate basic pie chart. works fine in ff, etc. (surprise!) not in ie. in ie loads okay , looks fine, 1 time roll mouse on chart throws next error:

unable value of property '0': object null or undefined

the way i'm setting straightforward:

var optionsobj = { seriescolors: ['#3399cc', '#cc6666', '#7ba550', '#ffcc66', '#d17314'], grid: { }, seriesdefaults: { renderer: $.jqplot.pierenderer, rendereroptions: { linelabels: true, linelabelslinecolor: '#777'} } }; line1 = [['coffee', 9],['beer', 4],['tv', 6],['lost umbrellas', 2],['bicycle rides', 10]]; chart = $.jqplot('piediv', [line1], optionsobj);

i should mention i'm using modified pie chart plugin includes label lines, problem when using regular pie chart plugin. can found here: http://blog.statscollector.com/line-labels-for-the-pie-chart-in-jqplot/

has has used library before come across this? help appreciated. thanks.

try this

var optionsobj = { seriescolors: ['#3399cc', '#cc6666', '#7ba550'], grid: { }, seriesdefaults: { renderer: $.jqplot.pierenderer, rendereroptions: { linelabels: true, linelabelslinecolor: '#777'} } }; line1 = [['coffee', 9],['beer', 4],['tv', 6],['lost umbrellas', 2],['bicycle rides', 10]]; chart = $.jqplot('piediv', line1, optionsobj);

javascript jquery charts jqplot

Comments

Popular posts from this blog

iphone - Dismissing a UIAlertView -

intellij idea - Update external libraries with intelij and java -

javascript - send data from a new window to previous window in php -