环形图圆角

描述:当前是关于Echarts图表中的 饼图 示例。
 
            var dataStyle = {
    normal: {
        label: {
            show: false
        },
        labelLine: {
            show: false
        }


    }
};

option = {
    backgroundColor: '#f2f2f2',
    color: ['#ffdb6d', '#89c9e1', '#ce77b6', '#f29e29'],

    title: {
        text: '平日甜食占比',
        x: 'center',
        top: '92%',
        textStyle: {
            color: '#6c6c6c'
        }
    },

    tooltip: {
        trigger: 'item',
        formatter: "{a} <br/>{b}: {c} ({d}%)"
    },
    legend: {
        orient: 'vertical',
        x: '2%',
        top: '40%',
        data: ['蛋糕', '冷饮', '甜筒', '糖果']
    },
    series: [{
        name: '平日甜食占比',
        type: 'pie',
        radius: ['50%', '70%'],
        avoidLabelOverlap: false,
        itemStyle: dataStyle,
        label: {
            normal: {
                show: false,
                position: 'center'
            },
            emphasis: {
                show: true,
                formatter: function(param) {
                    return param.percent.toFixed(0) + '%';
                },
                textStyle: {
                    fontSize: '30',
                    fontWeight: 'bold'
                }
            }
        },
        labelLine: {
            normal: {
                show: true
            }
        },
        data: [{
            value: 480,
            name: '蛋糕',
            color: {
    image: document.getElementById("aa"), // 支持为 HTMLImageElement, HTMLCanvasElement,不支持路径字符串
    repeat: 'repeat' // 是否平铺, 可以是 'repeat-x', 'repeat-y', 'no-repeat'
},
        }, {
            value: 320,
            name: '冷饮'
        }, {
            value: 250,
            name: '甜筒'
        }, {
            value: 145,
            name: '糖果'
        }]
    }]
};