想在显示的数据后加个%符号
series: [{
type: 'bar',
itemStyle: {
normal: {
label: {
show: true,
position: 'inside',//数据在中间显示
formatter:'{c}%'//百分比显示
}
}
},
data: [46, 20, 62, 12, 10, 80]
}]
yAxis: [{
type: 'value',
name: '单位: %',
nameTextStyle: {
color: 'rgba(255,64,104,0.5)',
},
axisLabel: {
formatter: '{value} %',
textStyle: {
color: 'rgba(255,64,104,0.5)',
}
},
axisLine: {
show: false
},
axisTick: {
show: false
},
splitLine: {
show: true,
lineStyle: {
type: "dotted",
color: ["rgba(255,60,104,.1)"]
}
}
}],
13 回答12.8k 阅读
7 回答1.9k 阅读
3 回答1.1k 阅读✓ 已解决
2 回答1.2k 阅读✓ 已解决
6 回答867 阅读✓ 已解决
6 回答1k 阅读
2 回答1.3k 阅读✓ 已解决