jQuery UI Widgets › Forums › Chart › Chart doesn't render if same values
This topic contains 2 replies, has 2 voices, and was last updated by SylvainD 12 years, 2 months ago.
-
Author
-
Dear all,
In my line chart, if the values are the same, I got a
“Problem parsing d=”M 30,NaN L 30,NaN 30,NaN 133.5,NaN 238.5,NaN 343.5,NaN 448.5,NaN 553.5,NaN 658.5,NaN 763.5,NaN 868.5,NaN 973.5,NaN”
If there is 1 different value, the chart renders fine.
Here is the Json i’m using :
[{“Id”:0,”Date”:”\/Date(1360593014540)\/”,”Value”:”22.50″},{“Id”:1,”Date”:”\/Date(1360593016590)\/”,”Value”:”22.50″},{“Id”:2,”Date”:”\/Date(1360593018487)\/”,”Value”:”22.50″},{“Id”:3,”Date”:”\/Date(1360593020103)\/”,”Value”:”22.50″},{“Id”:4,”Date”:”\/Date(1360593021733)\/”,”Value”:”22.50″},{“Id”:5,”Date”:”\/Date(1360593023347)\/”,”Value”:”22.50″},{“Id”:6,”Date”:”\/Date(1360593025150)\/”,”Value”:”22.50″},{“Id”:7,”Date”:”\/Date(1360593026713)\/”,”Value”:”22.50″},{“Id”:8,”Date”:”\/Date(1360593028370)\/”,”Value”:”22.50″},{“Id”:9,”Date”:”\/Date(1360593030223)\/”,”Value”:”22.50″}]
And the settings of the chart :
var settings = { title: "Historique des températures", description: "", source: dataAdapter, colorScheme: 'scheme01', showLegend: false, categoryAxis: { displayValueAxis: true, dataField: 'Date', axisSize: 'auto', showGridLines: false, unitInterval: unitInterval, description: 'Temps', formatFunction: function (value) { var date = new Date(value); return '[' + Digits2(date.getDate()) + ']' + Digits2(date.getHours()) + ':' + Digits2(date.getMinutes()) + ':' + Digits2(date.getSeconds()); }, }, seriesGroups: [{ type: 'line', // change the series type here valueAxis: { axisSize: 'auto', description: 'Value' }, series: [{ dataField: 'Value', displayText: 'temp' }] }] };
If you have an idea how to fix that ?
sylvain
Hi SylvainD,
Thank you for the feedback. At present, we are unable to provide a workaround about the reported behavior.
Best Regards,
Peter StoevjQWidgets Team
http://www.jqwidgets.comOK.
Thanks for your answer.
Let me know when it’s corrected.
Sylvain -
AuthorPosts
You must be logged in to reply to this topic.