echarts icon indicating copy to clipboard operation
echarts copied to clipboard

[Bug] dataZoom hides datapoints when using stacked lines

Open archiewood opened this issue 3 months ago • 0 comments

Version

6.0.0

Link to Minimal Reproduction

repro

config
{
    "toolbox": {
        "feature": {
            "dataZoom": {}
        }
    },
    "xAxis": {"type": "category"},
    "yAxis": [
        {
            "scale": true
        }
    ],
    "series": [
        {
            "type": "line",
            "stack": "stack1",
            "data": [
                ["a",5],
                ["b",7],
                ["c",5]
            ]
        },
        {
            "type": "line",
            "stack": "stack1",
            "data": [
                ["a",4],
                ["b",8],
                ["c",9]
            ]
        }
    ]
}

Steps to Reproduce

  1. Use the repro link. Observe there are some missing values
  2. Remove "dataZoom": {} from the config
    • OR adjust the first value in the second series from 4 -> 5
    • OR remove the "stack" from each series
    • OR remove "scale": true from yAxis
  3. Observe that the point [a,4] for the second series dissaperars

Therefore assume it is an edge case to do with stacked values, scale, and dataZoom

Current Behavior

Enabling dataZoom appears to hide some datapoints that should be shown. This only happens for specific values.

Link

Image

Expected Behavior

All data points should be shown

Link

Image

Environment

- OS: MacOS
- Browser: Chrome (Arc)
- Framework: n/a

archiewood avatar Nov 12 '25 19:11 archiewood