axisx.p2c is not a function (jquery.flot.js (line 1637))

313 views
Skip to first unread message

likestheaction

unread,
Dec 6, 2009, 11:40:49 PM12/6/09
to Flot graphs
I am getting this error trying to plot the following. I am using flot
0.6. Anyone encountered it? I updated my scripts in the html page to
use the new excanvas and flot.

var data = [];
var ticks = [];

data = [[0, " 9.494876"], [1, " 8.1098385"]];
ticks = [[0, "test0"], [1, "test1"]];


$.plot($("#overviewChartControl"), [ {
data :data,
bars : {
show :true
},
xaxis : {
ticks :ticks
}
} ]);

likestheaction

unread,
Dec 7, 2009, 3:48:27 PM12/7/09
to Flot graphs
This is my fault. I wasn't forming the .plot correctly. It wasn't
clear that data and bars was part of the second argument, and xaxis
should be a part of the options argument.
Reply all
Reply to author
Forward
0 new messages