diff --git a/lib/core.js b/lib/core.js index 468b204..ad89138 100644 --- a/lib/core.js +++ b/lib/core.js @@ -40,7 +40,7 @@ module.exports = { chart.destroy(); }; - classData.componentWillReceiveProps = function(nextProps) { + classData.componentWillReceiveProps = function(nextProps) { var chart = this.state.chart; chart.data = nextProps.data; chart.update(); @@ -127,7 +127,7 @@ var dataKeys = { var updatePoints = function (nextProps, chart, dataKey) { var name = chart.name; - if (name === 'PolarArea' || name === 'Pie' || name === 'Doughnut') { + if (name === 'PolarArea' || name === 'Pie' || name === 'Doughnut' || name === 'DoughnutTextInside') { nextProps.data.forEach(function (segment, segmentIndex) { if (!chart.segments[segmentIndex]) { chart.addData(segment);