echarts icon indicating copy to clipboard operation
echarts copied to clipboard

Legend does not show in sunburst chart

Open tkfischer opened this issue 2 years ago • 6 comments

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!

tkfischer avatar Apr 15 '22 18:04 tkfischer

I'm having the same issue here

apmahend avatar Jun 28 '22 10:06 apmahend

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

osamamammar avatar Aug 13 '22 15:08 osamamammar

This is still happening...

ClaudiuCeia avatar Feb 24 '23 09:02 ClaudiuCeia

This is still happening...

Yes

osamamammar avatar Feb 25 '23 18:02 osamamammar

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

Mingeax avatar Mar 07 '23 05:03 Mingeax

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

smit3901 avatar Apr 23 '24 07:04 smit3901