apache / apache/echarts

[Feature] Line based sorting in legend

Open
#21,462 2 comments 0 reactions 0 assignees View on GitHub
en missing-demo new-feature pending
Dominant language
TypeScript
Stars
67.3k
Forks
19.8k
Avg merge
11d 14h
Merged PRs (30d)
8

Description

### 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?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.