Skip to content

[Bug] dataZoom hides datapoints when using stacked lines #21371

@archiewood

Description

@archiewood

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugenThis issue is in English

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions