apache / echarts

Apache ECharts is a powerful, interactive charting and data visualization library for browser
https://echarts.apache.org
Apache License 2.0
60.19k stars 19.61k forks source link

treemap zoom limitation #17511

Closed mousavi71 closed 3 months ago

mousavi71 commented 2 years ago

Version

5.3.2

Link to Minimal Reproduction

No response

Steps to Reproduce

https://echarts.apache.org/examples/en/editor.html?c=treemap-disk open this example and zoom out until nothing to show remains.

Current Behavior

hello and thank you for this magnificent library. I am unsure if this is a bug or requesting a new feature. the problem is that zooming in treemap doesn't have any limitation, so if a user zooms out too much, the chart becomes so tiny that it becomes the size of a point and finally will disappear, so the user should reopen the page to see the chart again.

Expected Behavior

I think we need configs to define the min and max valid zoom range and prevent zooming out more.

Environment

- OS: Ubuntu
- Browser: chrome 99
- Framework: react

Any additional comments?

No response

echarts-bot[bot] commented 2 years ago

I'm sorry to close this issue for it lacks the necessary title. Please provide a descriptive and as concise as possible title to describe your problems or requests and then the maintainers or I will reopen this issue.

Every good bug report or feature request starts with a title. Your issue title is a critical element as it's the first thing maintainers see.

A good issue title makes it easier for maintainers to understand what the issue is, easily locate it, and know what steps they'll need to take to fix it.

Moreover, it's better to include keywords, as this makes it easier to find the issue self and similar issues in searches.

echarts-bot[bot] commented 2 years ago

This issue is labeled with difficulty: easy. @mousavi71 Would you like to debug it by yourself? This is a quicker way to get your problem fixed. Or you may wait for the community to fix.

Please have a look at How to debug ECharts if you'd like to give a try. 🤓

kerorojason commented 2 years ago

Similar issue: https://github.com/apache/echarts/issues/14599