chart enhancements

This commit is contained in:
Jan Prochazka
2021-11-11 11:01:42 +01:00
parent e0aeae5220
commit fc984da9d3
4 changed files with 81 additions and 29 deletions

View File

@@ -16,10 +16,13 @@
chart = new Chart(domChart, {
type,
data,
options,
plugins,
options: {
...options,
plugins,
},
});
});
afterUpdate(() => {
if (!chart) return;
chart.data = data;