echarts [Bug] treemap缩放过小的时候图表会完全消失,无法再次放大,是否可以限制一下最小zoom

dgiusagp  于 5个月前  发布在  Echarts
关注(0)|答案(5)|浏览(55)

Version

5.4.3

https://echarts.apache.org/examples/zh/editor.html?c=treemap-disk

Steps to Reproduce

echart官方demo: https://echarts.apache.org/examples/zh/editor.html?c=treemap-disk

Current Behavior

缩放过小导致图表消失,消失后无法通过缩放来再次显示,希望可以提供最小zoom来避免消失

Expected Behavior

希望可以提供最小zoom来避免消失

Environment

- OS:
- Browser:
- Framework:

Any additional comments?

No response

t5zmwmid

t5zmwmid1#

@weinixiong It seems you are not using English, I've helped translate the content automatically. To make your issue understood by more people and get helped, we'd like to suggest using English next time. 🤗
TRANSLATED

TITLE

[Bug] When the treemap zoom is too small, the chart will disappear completely and cannot be enlarged again, can you limit the minimum zoom

BODY

Version

5.4.3

https://echarts.apache.org/examples/zh/editor.html?c=treemap-disk

Steps to Reproduce

echart official demo: https://echarts.apache.org/examples/zh/editor.html?c=treemap-disk

Current Behavior

Zooming too small causes the chart to disappear. After disappearing, it cannot be displayed again by zooming. It is hoped that a minimum zoom can be provided to avoid disappearing

Expected Behavior

Hope to provide a minimum zoom to avoid disappearing

Environment

- OS:
-Browser:
- Framework:

Any additional comments?

No response

omtl5h9j

omtl5h9j2#

As a workaround you can add the restore option:

toolbox: {
    feature: {
        restore: {}
    }
}
qc6wkl3g

qc6wkl3g3#

dataZoom的minSpan、minValueSpan配置了解一下

kxe2p93d

kxe2p93d4#

Seems dataZoom not work on treemaps?

798qvoo8

798qvoo85#

dataZoom的minSpan、minValueSpan配置了解一下

dataZoom not work on treemap

相关问题