Skip to content

[Bug] 6.0版本 treemap scaleLimit 配置项失效 #21426

@liuyizhou

Description

@liuyizhou

Version

6.0.0

Link to Minimal Reproduction

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

Steps to Reproduce

在官方示例 https://echarts.apache.org/examples/zh/editor.html?c=treemap-simple 中,
option = { series: [ { type: 'treemap', **scaleLimit: { min: 1 },** data: [ { name: 'nodeA', value: 10, children: [ { name: 'nodeAa', value: 4 }, { name: 'nodeAb', value: 6 } ] }, { name: 'nodeB', value: 20, children: [ { name: 'nodeBa', value: 20, children: [ { name: 'nodeBa1', value: 20 } ] } ] } ] } ] };
新增scaleLimit.min = 1,放大后不能缩小

Current Behavior

放大后或其他任何情况下,无法缩小

Expected Behavior

新增scaleLimit.min = 1 时,预期不能缩小至100%以下

Environment

- OS: macOS
- Browser: Chrome
- Framework: React

Any additional comments?

之前版本表现正常

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugenThis issue is in EnglishregressionSomething no longer works as expected since a certain version

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions