apache / apache/echarts

[Bug] Legend do not break in VisualMap piecewise option

Open
#17,659 2 comments 0 reactions 0 assignees View on GitHub
en new-feature topic: visualMap
Dominant language
TypeScript
Stars
67.3k
Forks
19.8k
Avg merge
11d 14h
Merged PRs (30d)
8

Description

### Version

5.3.3

### Link to Minimal Reproduction

https://echarts.apache.org/examples/en/editor.html?c=calendar-heatmap

### Steps to Reproduce

Hi,
I was trying to use VisualMap with piecewise option, however, not all the legends are visible, see the image below:
![Screenshot_20220916-065927_Chrome](https://user-images.githubusercontent.com/96917577/190553973-48d65036-59b0-4644-a021-adb968067bab.jpg)

Is it possible to auto break the legend, or manually define the number of columns?

### Current Behavior

The VisualMap legend does not fit into the screen.

### Expected Behavior

Automatically break the legend if doesn't fit.

### Environment

```markdown
- OS:Android
- Browser: Chrome
- Framework:
```

### Any additional comments?

_No response_

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.