Skip to content

[Bug] Can't I Stack chart Yaxis sorting? #18771

Open
@4bbada

Description

Version

5.4.2

Link to Minimal Reproduction

https://echarts.apache.org/examples/en/editor.html?c=line-stack

Steps to Reproduce

series: [ { name: 'Email', type: 'line', stack: 'Total', data: [1, 1, 1, 1, 1, 1, 1] }, { name: 'Union Ads', type: 'line', stack: 'Total', data: [0.1, 0.2, 0.3, 0.1, 0.1, 0.1, 0.2] }, { name: 'Video Ads', type: 'line', stack: 'Total', data: [0.1, 0.1, 0.1, 0.1, 0.1, 0.7, 0.7] }, { name: 'Direct', type: 'line', stack: 'Total', data: [0.3, 0.3, 0.3, 0.3, 0.3, 0.3, 0.3] }, { name: 'Search Engine', type: 'line', stack: 'Total', data: [0.2, 0.2, 0.2, 0.2, 0.2, 0.2, 0.2] } ]

  • These are the values ​​I changed in this example.

The value of Email is 1, why is it below?

Are the values ​​on the y-axis unaffected by the values ​​on the x-axis?

Then, I wonder if it is possible to set the y-axis according to the value of the x-axis and sort it.

Sorry if I didn't understand the stack chart.

I'm always grateful for your projects.

Current Behavior

I think it's better to read if Email is stacked at the top.

Expected Behavior

But now Email with a value of 1 is below those with a value less than 1.

Environment

- OS:
- Browser:
- Framework:

Any additional comments?

No response

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions