Skip to content
This repository was archived by the owner on Jul 19, 2019. It is now read-only.

Commit 3fea1b9

Browse files
committed
fix failed to update points in doughnut chart
1 parent 098ee81 commit 3fea1b9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/core.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ var dataKeys = {
8585
var updatePoints = function(nextProps, chart) {
8686
var name = chart.name;
8787

88-
if (name === 'PolarArea' || name === 'Pie') {
88+
if (name === 'PolarArea' || name === 'Pie' || name === 'Doughnut') {
8989
nextProps.data.forEach(function(segment, segmentIndex) {
9090
chart.segments[segmentIndex].value = segment.value;
9191
});

0 commit comments

Comments
 (0)