Skip to content

Setting width to legend not working!! #12562

Description

@madhurachanna

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions