option = {
...
series: [
{
data: [],//数据
type: "bar", //类型
barWidth: 30, //柱子宽度
barGap: 1, //柱子间距
itemStyle: {//控制显示数字
normal: {
label: {
show: true, //开启显示
position: 'top', //在上方显示
textStyle: { //数值样式
color: '#333',
fontSize: 16
}
}
}
}
}],
...
}
