apache / echarts

Apache ECharts is a powerful, interactive charting and data visualization library for browser
https://echarts.apache.org
Apache License 2.0
60.18k stars 19.6k forks source link

Legend does not show in sunburst chart #16894

Open tkfischer opened 2 years ago

tkfischer commented 2 years ago

Version

latest

Link to Minimal Reproduction

https://github.com/apache/echarts

Steps to Reproduce

  1. Set chart type to sunburst
  2. Set legend show = true
  3. Legend does not show

Current Behavior

Does not show legend

Expected Behavior

Show legend

Environment

- OS: All
- Browser: All
- Framework: All

Any additional comments?

I just saw another related issue which is 4 yrs old. I am not 100% sure it is the same issue since it is in Chinese and the translation is not clear, so I am creating a new issue, bcoz it is a showstopper for us. I believe it is a serious bug since it is a basic required function for a chart that is missing. Plz address ASAP. Thanks!

apmahend commented 2 years ago

I'm having the same issue here

osamamammar commented 2 years ago

Does anyone solve this issue? I have the same issue.

ClaudiuCeia commented 1 year ago

This is still happening...

osamamammar commented 1 year ago

This is still happening...

Yes

Mingeax commented 1 year ago

It seems that the data option must be specified in legend with some kinds of charts, and the name option in series too.

Example: image

  legend: {
    data: ['relative']
  },
  series: {
    name: 'relative',
    type: 'sunburst',
    data: data,
    radius: [0, '90%'],
    label: {
      rotate: 'radial'
    }
  }

https://echarts.apache.org/examples/zh/editor.html?c=sunburst-visualMap

smit3901 commented 4 months ago

Does anyone solve this issue? I also face the same issue. @Mingeax @ClaudiuCeia @osamamammar @tkfischer @apmahend