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!