echarts
echarts copied to clipboard
Legend does not show in sunburst chart
Version
latest
Link to Minimal Reproduction
https://github.com/apache/echarts
Steps to Reproduce
- Set chart type to sunburst
- Set legend show = true
- 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!
I'm having the same issue here
Does anyone solve this issue? I have the same issue.
This is still happening...
This is still happening...
Yes
It seems that the data option must be specified in legend with some kinds of charts, and the name option in series too.
Example:
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
Does anyone solve this issue? I also face the same issue. @Mingeax @ClaudiuCeia @osamamammar @tkfischer @apmahend