Skip to content

[Feature] Line based sorting in legend #21462

@dakhnod

Description

@dakhnod

What problem does this feature solve?

As seen in the image, I am displaying a chart with a legend. Since the legend shows quite a few values, echarts seems to create multiple lines for the entries, which is perfectly fine.

The issue comes from the sorting. Currently, the sorting iis column-based, the ascending values in the legend are first ascending within a column, like this:
1, 3, 5,
2, 4, 6

. I would love to be able to have the values sorted in lines, like this:
1, 2, 3,
4, 5, 6

Is this somehow doable, and I am missing something?
I could change the orientation to horizontal, but then I would only see a single line.

Image

What does the proposed API look like?

Maybe an additional parameter in the legend block?

Metadata

Metadata

Assignees

No one assigned

    Labels

    enThis issue is in Englishmissing-demoThe author should provide a demo.new-featurependingWe are not sure about whether this is a bug/new feature.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions