Open stockiNail opened 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.
buildData
Something like
So actually quite much the same as the buildData, expect creating elements on the fly.
Use data option instead of tree one.
data
tree
Maybe the best solution is going to parse method of the controller, to split data and element creation.
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 oftree
one.