Hi,
Can you debug what the jsonData looks like?
Is it in format [[‘2000/01/01’, 3], [‘2000/01/02’, 7], …]?
I believe in your case the first value is a string value, which creates a spline chart on a category axis. If this is the case you can change the "type: 'category',” in the axis definition.
Code:axes: [
{
type: 'category',
location: 'bottom',
If you want to work with true date time data, you can convert the string values to dates. Something like this one:
Code: function convertData(jsonData) {
var data = [];
for (var i = 0; i < jsonData.length; i++) {
var item = jsonData[i];
data.push([new Date(item[0]), item[1]]);
}
return data;
}
Best Regards,
Dragan Matek
jqChart Inc.