Skip to content
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