Version
5.4.2
Link to Minimal Reproduction
https://echarts.apache.org/examples/en/editor.html?c=sunburst-borderRadius
Steps to Reproduce
add formatter in sunburst label in the following link:
option = {
series: {
type: 'sunburst',
data: data,
radius: [60, '90%'],
itemStyle: {
borderRadius: 7,
borderWidth: 2
},
label: {
show: true,
formatter: '{b}: {d}%',
}
}
};
Current Behavior
cannot show {d}% in chart
Expected Behavior
show {d}% in charts correctly
Environment
- OS:
- Browser:
- Framework:
Any additional comments?
No response
4条答案
按热度按时间s1ag04yj1#
hello i want to work on this so please give me permission to fix this problem.....
olhwl3o22#
@vikas-6 Feel free to solve this issue, you don't need a permission
zsbz8rwp3#
https://codepen.io/VIKAS-KUMAR-the-vuer/pen/NWEpdOY ----------- I fixed it now it show {d}% in charts correctly....
bttbmeg04#
@vikas-6
Thank you for this amazing fix. It does work. But it would be awesome if you can round it to 2 decimals like in the other charts.