You must be logged in to post your query.
Home › Forums › Report Bugs › axisX lalbelWarp with single dataPoint having label result in error
When there is only one dataPoint in series with label, CanavasJS has rendering issues (throws exception). So here is configuration that DOES NOT WORK: { axisX: { labelWrap: true }, data: [{ dataPoints: [{ y: 1, label: ‘1’ }] }] }
{ axisX: { labelWrap: false }, data: [{ dataPoints: [{ y: 1, label: ‘1’ }] }] }
WORK: { axisX: { labelWrap: false }, data: [{ dataPoints: [{ y: 1 }] }] }
{ axisX: {}, data: [{ dataPoints: [{ y: 1, label: ‘1’ }] }] }
{ axisX: { labelWrap: false }, data: [{ dataPoints: [{ y: 1, label: ‘1’ },{ y: 1, label: ‘1’ }] }] }
Paste above JSON objects as second argument for new Chart in any CanvasJS demos to reproduce the error!
https://jsfiddle.net/euxhk3do/
@globalautomation,
Thanks for reporting the use-case. We will fix the issue in our upcoming versions.
___________ Indranil Deo Team CanvasJS
[UPDATE] @globalautomation,
We have just released v3.0 Beta-1 with this fix. Please refer to the release blog for more information. Do download the latest version from download page & let us know your feedback.
You must be logged in to reply to this topic. Login/Register