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

fix bug #117

Merged
merged 1 commit into from
Jul 14, 2016
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
5 changes: 4 additions & 1 deletion lib/core.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,13 +55,16 @@ module.exports = {
} else {
// assign all of the properites from the next datasets to the current chart
nextProps.data.datasets.forEach(function(set, setIndex) {
var chartDataset = chart.data.datasets[setIndex];

var chartDataset = {};

for (var property in set) {
if (set.hasOwnProperty(property)) {
chartDataset[property] = set[property];
}
}

chart.data.datasets[setIndex] = chartDataset;
});

chart.data.labels = nextProps.data.labels;
Expand Down