The novice asks: how does echarts realize that there should be both the middle of the guide wire and the sum of data?

Jun.25,2021

if you just want to put some text in pie, you can put title in the middle.
take a look at the example
http://echarts.baidu.com/exam.
replace the configuration in title to see the general effect.
title: {

    showTitle:true,
     text:'{a|}',
    subtext:'',
   top:'middle',
   left:'center',
   textStyle: {
           rich: {
        a: {
            color: 'red',
            lineHeight: 10
        },
        b: {
            backgroundColor: {
                image: 'xxx/xxx.jpg'
            },
            height: 40
        },
        x: {
            fontSize: 18,
            fontFamily: 'Microsoft YaHei',
            borderColor: '-sharp449933',
            borderRadius: 4
        }
}}
},

clipboard.png

app.title = "';

option = {
    title : {
        showTitle:true,
        text: "{a|}',
        subtext: '450000.00',
        top: 'middle',
        left: 'center',
        textStyle: {
            rich: {
                a: {
                    color: '-sharp000',
                    fontSize: 16,
                    lineHeight: 20
                }
            }
        }
    },
    tooltip: {
        trigger: 'item',
        formatter: "{a} <br/>{b}: {c} ({d}%)"
    },
    series: [
        {
            name:'',
            type:'pie',
            radius: ['40%', '55%'],
            label: {
                normal: {
                    formatter: '  {b|{b}:}{c}  {per|{d}%}  ',
                    backgroundColor: '-sharpeee',
                    borderColor: '-sharpaaa',
                    borderWidth: 1,
                    borderRadius: 4,
                    rich: {
                        b: {
                            fontSize: 16,
                            lineHeight: 33
                        },
                        per: {
                            color: '-sharpfff',
                            backgroundColor: '-sharp334455',
                            padding: [2, 4],
                            borderRadius: 2
                        }
                    }
                }
            },
            data:[
                {value:2742.64, name:''},
                {value:826.32, name:''}
            ]
        }
    ]
};
Menu