apache / apache/echarts

[Feature] 请问legend可以分别设置水平和垂直的间隔吗

Open
#18,967 7 comments 0 reactions 0 assignees View on GitHub
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?

[itemGap](https://echarts.apache.org/zh/option.html#legend.itemGap)
这个属性的官方描述是这样的:图例每项之间的间隔。横向布局时为水平间隔,纵向布局时为纵向间隔。
但是经测试发现改这个值会同时改变水平和纵向间隔。

### What does the proposed API look like?

希望官方提供的itemGap支持输入数组,数组项分别是水平间隔和纵向间隔,或是提供其它可行的解决方案,在此深表感谢。

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.