Tree and data must be overridden in order to update the chart #171
stockiNail
started this conversation in
Ideas
Replies: 1 comment 3 replies
-
If I remember correctly, |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Going to the last version, I have discovered that if you change the values of the tree (or data) without instantiating new object (or array), the chart will not be updated.
This is because the tree is stored in the controller and checked with new one at every update:
chartjs-chart-treemap/src/controller.js
Line 112 in f6a7af1
Maybe it's implemented as designed. But maybe it could be better to check not the instance but the content of the tree.
Beta Was this translation helpful? Give feedback.
All reactions