option = {
    textStyle: {
        fontSize: 20,   // 调节字体大小
        
    },
    title : {
        text: '',       // 主标题名称
        subtext: '',    // 副标题名称
        x:'center'      // 标题的位置
    },
    tooltip : {
        trigger: 'item',
        formatter: "{a} <br/>{b} : {c} ({d}%)"
    },
    legend: {
        orient: 'vertical',         // 标签名称垂直排列
        x: 'right',                 // 标签的位置
        data:['不能坚持健身','偏好其他健身场所','健身房价格太贵',
'部分健身房有强行推销的行为','健身房空气不流通','健身房人多繁杂','对市面上的健身房都不满意']
    },                              // 标签变量名称
    toolbox: {
        show : true,
        feature : {
            mark : {show: true},
            dataView : {show: true, readOnly: false},
            magicType : {
                show: true,
                type: ['pie', 'funnel']
            },
            restore : {show: true},
            saveAsImage : {show: true}          // 保存图片
        }
    },
    calculable : true,
    series : [
        {
            name:'面积模式',                    // 图表名称
            type:'pie',                         // 图表类型
            radius : [30, 200],                 // 图表内外半径大小
            center : ['50%', '50%'],            // 图表位置
            roseType : 'area',
            label: {
                normal: {
                    show: true,
                    formatter: '{b}({d}%)'      // 显示百分比
                }
            },
            data:[
                {value:180, name:'不能坚持健身'},           // 变量对应的具体数据
                {value:180, name:'偏好其他健身场所'},
                {value:165, name:'健身房价格太贵'},
                {value:151, name:'部分健身房有强行推销的行为'},
                {value:97, name:'健身房空气不流通'},
                {value:81, name:'健身房人多繁杂'},
                {value:29, name:'对市面上的健身房都不满意'}
            ]
        }
    ]
};

以下是效果图

 


南丁格尔玫瑰图3

 


 

相关文章:

  • 2021-11-17
  • 2022-12-23
  • 2021-12-22
  • 2021-08-03
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-09-30
  • 2021-09-06
  • 2021-05-27
  • 2021-12-31
  • 2021-11-21
  • 2021-07-24
相关资源
相似解决方案