[Bug] yAxis with max < 1e-19 triggers assertion error in v6.1.0
@100pah 已经在做这个了。
开始于 2026年6月11日。
评估
这个 Issue 还没有评估数据。
描述
Version
6.1.0
Link to Minimal Reproduction
https://codesandbox.io/p/sandbox/pensive-dewdney-vspmvt
Steps to Reproduce
- Open CodeSandbox link
- See displayed error because chart cannot render
- Change max value in value yAxis from 2.324097633474072e-20 to 2.324097633474072e-19
- Chart renders now
Current Behavior
When yAxis.max is smaller than approximately 1e-19 (for example 2.324097633474072e-20), calling chart.setOption() throws an assertion error and the chart fails to render.
The error originates from IntervalScale.setConfig and propagates through the axis tick calculation (axisNiceTicks / axisHelper).
The same configuration works correctly in ECharts 6.0.0, so this appears to be a regression introduced in 6.1.0.
Expected Behavior
The chart should render successfully regardless of how small the numeric yAxis.max value is, as long as it is a valid finite number.
Very small values (such as 2.324097633474072e-20) should be handled correctly during axis tick calculation without triggering an assertion error or causing chart.setOption() to fail.
Environment
- OS: Ubuntu 22.04.4 LTS
- Browser: Firefox 151.0
- Framework: Angular@21
Any additional comments?
I was initially unable to reproduce the issue in the official ECharts example editor because it currently appears to use ECharts 6.0.0 (or lower?), where the issue does not occur.
The assertion error is reproducible only with ECharts 6.1.0. Therefore, a standalone reproduction (e.g. CodeSandbox using 6.1.0) is required to observe the problem.
- 主要语言
- TypeScript
- 星标
- 67.7k
- 派生
- 19.9k
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
apache/echarts 的其他 Issue
-
[Bug] String formatter templates only replace the first occurrence of `{a}`/`{b}`/`{c}`可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭en pending
难度 2/5 1-3 小时 新手友好度 80/100
-
[Bug] Inverse axis collapses the grid with outerBoundsContain when a tick is near the axis edge可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭en pending
难度 2/5 1-3 小时 新手友好度 82/100
-
en pending
难度 2/5 1-3 小时 新手友好度 78/100
-
en pending
难度 2/5 1-3 小时 新手友好度 78/100
-
[Bug] The zoom cursor in the toolbox area is incorrect可能已有人在做 @waterWang 于 98 天前认领。 未关闭bug en pending
难度 2/5 1-3 小时 新手友好度 70/100
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 83/100
pollen-robotics/reachy-mini-desktop-app#341 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 2 天内回复
-
难度 2/5 1-3 小时 新手友好度 77/100
mike-north/AgentMonitors#648 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 75/100
vercel-labs/ui#700 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 75/100
维护者通常 2 天内回复