var option = {
tooltip: {
trigger: 'axis',
formatter:'{c}%',
axisPointer: {
type: 'shadow'
}
},
xAxis: {
type: 'value',
axisLabel: {//文字样式
formatter: '{value}%'
}
},
yAxis: {
type: 'category',
data: yData,
},
series: [
{
name: '',
type: 'bar',
data: xData,
label: {
formatter: '{c}%'
}
}
]
};
Echarts histogram value, the value of the x-axis, displayed as a percentage of the value tooltip
Guess you like
Origin blog.csdn.net/wsln_123456/article/details/104036247
Ranking