Tried removing one set of []'s
$wnd.$.jqplot('chartdiv', [[1, 2],[3,5.12],[5,13.1],[7,33.6],[9,85.9],
[11,219.9]]);
that's an improvement, but I still get same error
this is the error -- line 110-112 from jquery.jqplot.js
if (data.constructor == Array && data.length == 0 || data
[0].constructor != Array) {
throw "Improper Data Array";
}
i've added some alerts just before this check to try and see what is
going on.
alert ("data.constructor = " + data.constructor);
alert ("data.length = " + data.length);
alert ("data[0].constructor = " + data[0].constructor);
the alerts show
data.constructor = function Array() { [native code] }
data.length = 6
data[0].constructor = function Array() { [native code] }
If I have the original code with "extra" []'s data.length is reported
as 1. I think length of 6 is what I want since there are 6 data
points to plot.
if the alert shows that the constructor is Array() why isn't that
passing the test of data[0].constructor != Array ?
thanks!