Why does my treemap show only 10 boxes when my JSON has 28 values?

Treemaps by default limit the max number of drawable children (top levels) to 10. You can modify this by setting maxChildren in side options to be equal to the max number you wish to draw.

However, in some cases of data, that may not completely solve your problem. ZingChart will attempt to draw the rest of the nodes but if there are drastic ranges in your data, that will prevent the small nodes from being drawn.

In this scenario, I would suggest modifying your data to increase the size of the smaller values so they get drawn then using custom tooltips to show the "real" value of those plots.

Refer to the Treemaps Tutorial for more information.

Have more questions? Submit a request


Please sign in to leave a comment.