Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] Stacked Bar chart with value/number x-axis doesn't stack #20355

Open
delphi-sucks opened this issue Sep 18, 2024 · 1 comment
Open

[Bug] Stacked Bar chart with value/number x-axis doesn't stack #20355

delphi-sucks opened this issue Sep 18, 2024 · 1 comment
Labels
bug en This issue is in English pending We are not sure about whether this is a bug/new feature.

Comments

@delphi-sucks
Copy link

Version

5.5.1

Link to Minimal Reproduction

https://echarts.apache.org/examples/en/editor.html?c=bar-negative&version=5.3.0&code=PYBwLglsB2AEC8sDeBYAULTsBEAPAgrhAM7YBcy6WW2AJgIZj3mwDaAjAEwC6VWAvgBo-mbAE9CJFkiEicxAKYAnCAtIVWc6qgzU9osGJAKW2AEb0l2Ybv3U6jZhq13qm2689cbn37ABs7C6-3D5-ocF62MRMAMYA1qbMYfqyHtqR9obGphZWKZ4OTCzufnqlZXbemX4AzAAcNfoR6XYtZdFxiRTYyZH8crxo_EA

Steps to Reproduce

Create a chart with the following options with atleast echarts v5.3.0:

{
    "xAxis": {
      "data": [12]
    },
    "yAxis": {},
    "series": [
        {
            "type": "bar",
            "data": [
                [
                    12,
                    61
                ],
            ],
            "stack": "a",
        },
        {
            "type": "bar",
            "data": [
                [
                    12,
                    38
                ],
            ],
            "stack": "a",
        }
    ]
}

Current Behavior

The Bars overlap and each series starts at 0.

bar-negative (2)

Expected Behavior

The Bars should be stacked.

bar-negative (1)

Environment

- OS: Windows 11
- Browser: Chrome 128.0.6613.138
- Framework:

Any additional comments?

The Bug exists since version 5.3.0.
It still worked with version 5.2.2.

@echarts-bot echarts-bot bot added en This issue is in English pending We are not sure about whether this is a bug/new feature. labels Sep 18, 2024
@helgasoft
Copy link

helgasoft commented Sep 18, 2024

duplicate of #16765 and others, PR pending.
BTW does not seem to work with version 5.2.2 either.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug en This issue is in English pending We are not sure about whether this is a bug/new feature.
Projects
None yet
Development

No branches or pull requests

2 participants