bleucitron / open-books

https://open-books.now.sh
MIT License
8 stars 7 forks source link

Chart should handle itself the fonction tree #155

Closed bleucitron closed 2 years ago

bleucitron commented 2 years ago

Currently, <Chart /> only accept an array of values and this array is updated when a click occur on a <Bar />, which via the handleClick callback (part of each value) selects a different fonction.

This pattern is not very intuitive.

<Chart /> should be able to handle itself the selection of the different fonctions.

It is probable that most of budget, code, fonction and tree stores will be useless after that.

bleucitron commented 2 years ago

In the end, it's much easier to have the Summary handle the tree via stores.