Skip to content

[Bug] chart disappears for certain max values on logarithmic y-axis #21581

@JMetschl

Description

@JMetschl

Version

6.0.0

Link to Minimal Reproduction

https://echarts.apache.org/examples/en/editor.html?c=line-simple&code=hZE9b8IwEIb3_oobKgWkgBLn066o1KEbG5U6ICRM6oLVJI4St02I-O-9gDEwtI0i-_T69fm5O1VpqUqYQX8H0D61smGwxBCOwvDprhIMnIxrsVV157hGf-Oao9fxHRccMiyBszofckz0IrMPBj3wXG7LV6l3c74ROQNdfwo4XDvNQQ-y1KL-4hh7LtRK45sMqHdxN1Uu9VyWKPfQ7NT3bTrccD9SdH_UkqutLeOfjLeARgJ4V3XBNcIyGCHvGGaPsL7vMZxq9dxWqhSlljwfkfFhbW7ZjAVvGfhiQnxLbaAbUUvxKzVCWuySF4O2OF4AnMHtVCzoEhsZT5MoCqhHwjgYfnw6jO2o0OO7QKZhTFIvIUFEaZrQUEwi79pDBg-JaUKDmNA0TUhM0ENWxmK9Qw8XXbFRZtRWN5qTyTrLL5Wc9IXcYz3xWdwzCE69GVpzd3j4AQ&enc=deflate

Steps to Reproduce

  1. Create a chart with a logarithmic y-axis (type: 'log').
  2. Use very small series values, for example in the range of 1e-46 to 1e-52.
  3. Set the y-axis max manually.
  4. Try different max values, for example:
  • 1e-20
  • values smaller than 6e-21
  • 1e-52

Current Behavior

  • With max: 1e-20, the chart is rendered.
  • As soon as max is set below 6e-21, the entire chart is no longer rendered.
  • When max is reduced further to around 1e-52, the chart appears again.

This creates a range of max values for which the chart disappears completely, even though all values are still valid positive numbers for a logarithmic axis.

Expected Behavior

The chart should always render correctly for any valid positive max value on a logarithmic axis.

If the configured max is above the data range, the chart should display accordingly.
If needed, ECharts should compute a matching visible range, but the chart should not disappear completely.

Environment

- OS:
- Browser: Firefox 149.0
- Framework:

Any additional comments?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugenThis issue is in EnglishpendingWe are not sure about whether this is a bug/new feature.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions