RingPercentecharts 饼配置项内容和展示

配置项如下
      app.title = '嵌套环形图';

option = {
    color: [
        '#0091EA',
        '#A13FC3',
        '#98C2CF',
        '#6FB3F1',
        '#4CBFCF',
        '#61D6B1',
        '#A0E896',
        '#E7F59B',
        '#D3C24B',
        '#536572',
    ],
    backgroundColor: '#fff',
    tooltip: {
        trigger: 'item',
        backgroundColor: '#fff',
        textStyle: {
            fontSize: 10,
            color: '#4A4A4A',
        },
        axisPointer: {
            lineStyle: {
              color: '#C9C9C9',
            },
        },
        extraCssText: 'box-shadow: 0 2px 4px rgba(0,0,0,.5);',
        formatter: function (params) {
            return `
                IP: ${params.name}<br />
                占比: ${params.value}<br />
                数量: ${params.value}
            `;
        },
    },
    legend: {
        orient: 'vertical',
        x: 'right',
        y: 'center',
        itemGap: 3,
        data:[
            { 
                name: '127.0.0.1', 
                icon: 'pin',
            },
            '10.139.111.135',
            '180.169.126.250',
            '121.27.183.1',
            '122.1.1.21',
            '172.17.1.1',
            '168.1.1.12',
            '168.1.2.93',
            '168.1.3.1',
            '121.3.1.14',
        ],
        textStyle: {
            color: '#666',
            fontSize: 10,
        },
        formatter: function(params) {
            console.log(params);
            return params;
        },
    },
    series: [
        {
            type:'pie',
            radius: ['40%', '55%'],
            center: ['30%', '50%'],
            data:[
                { value:335, name: '127.0.0.1' },
                { value:310, name: '10.139.111.135' },
                { value:234, name: '180.169.126.250' },
                { value:135, name: '121.27.183.1' },
                { value:1048, name: '122.1.1.21' },
                { value:251, name: '172.17.1.1' },
                { value:147, name: '168.1.1.12' },
                { value:102, name: '168.1.2.93' },
                { value: 111, name: '168.1.3.1' },
                { value: 112, name: '121.3.1.14' }
            ]
        }
    ]
};
    
截图如下