kurkle / chartjs-chart-treemap

Chart.js module for creating treemap charts
MIT License
137 stars 34 forks source link

Merge buildData with element creation and the available child rect calculation moved to element #122

Open stockiNail opened 2 years ago

stockiNail commented 2 years ago

From @kurkle https://github.com/kurkle/chartjs-chart-treemap/pull/121#issuecomment-1258534332

buildData should be merged with element creation, and the available child rectangle calculation moved to element.

Something like

So actually quite much the same as the buildData, expect creating elements on the fly.

Use data option instead of tree one.

stockiNail commented 1 year ago

Maybe the best solution is going to parse method of the controller, to split data and element creation.