apache / apache/echarts

Setting width to legend not working!!

Open
#12,562 12 comments 0 reactions 0 assignees View on GitHub
bug topic: legend
Dominant language
TypeScript
Stars
67.3k
Forks
19.8k
Avg merge
11d 14h
Merged PRs (30d)
8

Description

This was my config for legend:
```
type: 'scroll',
orient: 'vertical',
right: 10,
top: 10,
bottom: 20,
padding: 10,
width: 300, // Not working
backgroundColor: '#212121' ,
pageIconColor: '#DF3840',
pageIconInactiveColor: '#414141',
pageTextStyle: {
color: '#fff'
},
itemGap: 20,
borderRadius: 5,
icon: 'pin',
inactiveColor: '#888',
zlevel: 100,
textStyle: {
color: '#eee',
},
```

> How to reproduce(Demo):
Add the above code to legend section in https://echarts.apache.org/examples/en/editor.html?c=pie-legend and try changing the width

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.