Echart 如何显示百分比

Echart 显示百分比需要更改的地方有三个:
1. Y轴

yAxis : [
{ 
            axisLabel: {
                formatter: '{value} %'
            }
        }
]
  1. tooltip
 tooltip: {
        formatter: '{c}%'
    }
  1. X
series: [{
        itemStyle: {
            normal: {
                label: {
                    show: true,
                    positiong: 'top',
                    formatter: '{c}%'
                }
            }
        }
     }]

你可能感兴趣的:(EChart)