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

fix failed to update points for doughnut chart #11

Merged
merged 1 commit into from
Mar 9, 2015
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/core.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
});
Expand Down