We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d49b06f commit dbce4d7Copy full SHA for dbce4d7
src/mixins/reactiveData.js
@@ -29,17 +29,17 @@ module.exports = {
29
// Get new and old dataset keys
30
const oldDatasetKeys = Object.keys(oldData.datasets[i])
31
const newDatasetKeys = Object.keys(dataset)
32
-
+
33
// Get keys that aren't present in the new data
34
const deletionKeys = oldDatasetKeys.filter((key) => {
35
return key !== '_meta' && newDatasetKeys.indexOf(key) === -1
36
})
37
38
// Remove outdated key-value pairs
39
deletionKeys.forEach((deletionKey) => {
40
delete chart.data.datasets[i][deletionKey]
41
42
43
// Update attributes individually to avoid re-rendering the entire chart
44
for (const attribute in dataset) {
45
if (dataset.hasOwnProperty(attribute)) {
0 commit comments