From 3fea1b9d018a25cd8825a6617641b5efcc6fc10f Mon Sep 17 00:00:00 2001 From: Neo Alienson Date: Mon, 9 Mar 2015 21:40:10 +0800 Subject: [PATCH] fix failed to update points in doughnut chart --- lib/core.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/core.js b/lib/core.js index d88db7b..e116173 100644 --- a/lib/core.js +++ b/lib/core.js @@ -85,7 +85,7 @@ var dataKeys = { var updatePoints = function(nextProps, chart) { var name = chart.name; - if (name === 'PolarArea' || name === 'Pie') { + if (name === 'PolarArea' || name === 'Pie' || name === 'Doughnut') { nextProps.data.forEach(function(segment, segmentIndex) { chart.segments[segmentIndex].value = segment.value; });