环形Map

描述:当前是关于Echarts图表中的 饼图 示例。
 
            var data = [];
var healthy = 30;
for (var i = 0; i <= 100; i++) {
    if (i <= healthy) {
        data.push({
            value: [0, i],
            name: 'real'
        })
    } else {
        data.push({
            value: [0, i],
            name: 'unreal',
            visualMap: false,
        })
    }

}

option = {
    tooltip: {
        trigger: 'item',
        formatter: "{b}:{c}"
    },
    visualMap: {
        max: 100,
        inRange: {
            color: ['#313695', '#4575b4', '#74add1', '#abd9e9', '#e0f3f8', '#ffffbf', '#fee090', '#fdae61', '#f46d43', '#d73027', '#a50026']
        }
    },
    series: [{
            name: '',
            type: 'pie',
            radius: ['65%', '70%'],
            center: ['50%', '50%'],
            clockwise: true,
            data: data,
            color: [
                '#fff',
                "#E6E6E6",
            ],
            hoverAnimation: false,
            legendHoverLink: false,
            label: {
                normal: {
                    show: false,
                },
                emphasis: {
                    show: false
                }
            },
            labelLine: {
                normal: {
                    show: false
                }
            },
            itemStyle: {
                normal: {
                    borderWidth: 4,
                    borderColor: '#ffffff',
                },
                emphasis: {
                    borderWidth: 0,
                    shadowBlur: 10,
                    shadowOffsetX: 0,
                    shadowColor: 'rgba(0, 0, 0, 0.5)'
                }
            }
        },

    ],

    backgroundColor: '#fff'
};