diff --git a/lib/core.js b/lib/core.js index 0f41a30..9479f19 100644 --- a/lib/core.js +++ b/lib/core.js @@ -90,7 +90,11 @@ var updatePoints = function(nextProps, chart, dataKey) { if (name === 'PolarArea' || name === 'Pie' || name === 'Doughnut') { nextProps.data.forEach(function(segment, segmentIndex) { - chart.segments[segmentIndex].value = segment.value; + if (!chart.segments[segmentIndex]) { + chart.addData(segment); + } else { + chart.segments[segmentIndex].value = segment.value; + } }); } else { while (chart.scale.xLabels.length > nextProps.data.labels.length) {