在做图表的时候,发现南丁格尔玫瑰图很时尚,因此做了个demo。
对于样式自己做了一下修改,重要的地方会注释,以供参考。
当然啦,有兴趣的也可以自己去官网查看API,不说了,上代码
option = {
title : {
text: '',
subtext: '',
x:'center'
},
tooltip : {
trigger: 'item',
formatter: "{a} <br/>{b} : {c} ({d}%)"
},
legend: {
x : 'center',
y : 'bottom',
//图例文字样式
textStyle:{
color:'#000',
fontSize:14,
fontWeight:'700'
},
data:['图例1','图例2','图例3','图例4','图例5']
},
toolbox: {
show : false,
},
calculable : true,
color:['#FD6035','#82C730','#FACE2F','#36B6DD','#0084C5'],//自己设置扇形图颜色
series : [
{
name:'