[Bug] yAxis with max < 1e-19 triggers assertion error in v6.1.0

未关闭
#21,645 0 条评论 0 个 reaction 已指派 1 人 在 GitHub 查看

@100pah 已经在做这个了。

开始于 2026年6月11日。

评估

这个 Issue 还没有评估数据。

描述

bug en pending regression
Version

6.1.0

Link to Minimal Reproduction

https://codesandbox.io/p/sandbox/pensive-dewdney-vspmvt

Steps to Reproduce
  1. Open CodeSandbox link
  2. See displayed error because chart cannot render
  3. Change max value in value yAxis from 2.324097633474072e-20 to 2.324097633474072e-19
  4. 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

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

apache/echarts 的其他 Issue

查看 apache/echarts 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。