echarts [Feature] Tree Map contain the roaming space

6rqinv9w  于 4个月前  发布在  Echarts
关注(0)|答案(1)|浏览(65)

What problem does this feature solve?

in the treemap options I can drag the chart completely out of view. Having looked through the docs I can not see a suitable option for this. I want roam mode to be available but I want to limit the range it can travel.

What does the proposed API look like?

Add a limit option to the roam feature to prevent the treemap going out of range

something like

roamBoundary: {
height: 
width: 
}
zrfyljdw

zrfyljdw1#

A pull request is welcomed. BTW, the API design doesn't seem to be reasonable enough. If you want to confine the treemap in a certain area, setting width and height alone is not helpful.

相关问题