4-部门资金预算使用进度/预算使用echarts 饼配置项内容和展示

配置项如下
      var handred = 100
var point = 65

option = {
    title: {
        text: point + '%',
        x: 'center',
        y: 'center',
        textStyle: {
            fontWeight: 'normal',
            color: '#3a99ef',
            fontSize: '75'
        },
        subtext: '预算使用',
        subtextStyle: {
            fontWeight: 'normal',
            color: '#000',
            fontSize: '25'
        },
    },
    tooltip: {
        formatter: function(params) {
            return params.name + ':' + params.percent + ' %'
        }
    },
    // legend: {
    //     show: true,
    //     itemGap: 12,
    //     data: ['占比', '剩余']
    // },

    series: [{
        name: 'circle',
        type: 'pie',
        clockWise: true,
        radius: ['50%', '66%'],
        itemStyle: {
            normal: {
                label: {
                    show: false
                },
                labelLine: {
                    show: false
                }
            }
        },
        hoverAnimation: false,
        data: [{
            value: point,
            name: '占比',
            itemStyle: {
                normal: {
                    color: { // 颜色渐变
                        colorStops: [{
                                    offset: 0,
                                    color: '#3a99ef' // 0% 处的颜色
                                }, {
                                    offset: 1,
                                    color: '#5eb0fb' // 100% 处的颜色
                                }]
                    },
                    label: {
                        show: false
                    },
                    labelLine: {
                        show: false
                    }
                }
            }
        }, {
            name: '剩余',
            value: handred - point,
            itemStyle: {
                normal: {
                    color: '#d8ebfc'
                }
            }
        }]
    }]
}


    
截图如下