Not getting points on chart only can see the X and Y Axis with digits. My code of draw chart is as below
var length = 0;
var length1 = 0;
var dataXY = [];
length = allVenues.length;
for (var i = 0; i < length; i++) {
length1 = allVenues[i].length;
for (var j = 0; j < length1; j++) {
dataXY.push([allVenues[i][j].date, allVenues[i][j].price]);
}
}
var result = {'label': 'chetan','data': dataXY};
var options = {
lines: {
show: true
},
points: {
show: true
},
xaxis: {
tickDecimals: 0,
tickSize: 1
}
};
$.plot("#placeholder", JSON.stringify(result), options);
My JSON array output is like as below :
{"label":"abc","data":[["Feb 18, 2016 11:53:49 AM",12],["Feb 18, 2016 11:54:49 AM",30]]}
But still i am not able to draw a chart. I'm not able to see the points on chart as well as not getting X-Axis data as per Dates of JSON Array.