带有背景高度变化的柱状图,有跳动的效果。
option = {
tooltip: {
trigger: 'axis'
},
legend: {},
grid: {
left: '3%',
right: '4%',
bottom: '3%',
containLabel: true
},
xAxis: [
{
type: 'category',
data: ['Z1', 'Z2', 'Z3']
}
],
yAxis: [
{
type: 'value'
}
],
series: [
{
name: 'WATER',
type: 'bar',
color: '#91cc75',
itemStyle: {
opacity: 1
},
data: [200, 132, 101]
},
{
name: 'MAX60',
type: 'bar',
color: '#91cc75',
barGap: '-100%',
itemStyle: {
opacity: 0.4
},
data: [220, 183, 222]
}
]
};
效果: