graphic: {
type: 'text',
left: 'center',
top: 'center',
z: 2,
style: {
text: '正处级',
fill: '#262626',
fontSize: 24,
x: 10,
y: 10,
}
},
var myChart = echarts.init(document.getElementById('echart01'));
// 指定图表的配置项和数据
myChart.setOption({
tooltip: {
trigger: 'item',
formatter: "{b}: {c} ({d}%)"
},
color: ["#009eff", "#ffc34e", "#eb5349"],