diff --git a/lib/core.js b/lib/core.js index 08a2f17..5cbb2e8 100644 --- a/lib/core.js +++ b/lib/core.js @@ -42,8 +42,12 @@ module.exports = { } else { dataKey = dataKey || dataKeys[chart.name]; updatePoints(nextProps, chart, dataKey); - chart.scale.xLabels = nextProps.data.labels; - chart.scale.calculateXLabelRotation(); + + if (chart.scale) { + chart.scale.xLabels = nextProps.data.labels; + chart.scale.calculateXLabelRotation(); + } + chart.update(); } };