barCategoryGap与barWidth一起使用barCategoryGap不生效
配置项如下
option = {
title: {
text: '节点区块高度',
x:60,
//y:10,
textStyle:{
color:'#fff',
fontWeight:100,
fontSize:20,
},
},
tooltip: {},
backgroundColor: '#1E3350',
xAxis: {
data: ["P01","P02","P03","P04","P05","P06",
"P07","P08","P09","P10","P11","P12"],
axisLine: {show: false},
axisTick: {show: false},
axisLabel: {
//show: true,
textStyle: {
color: '#fff',
fontSize:'10'
}
},
},
// yAxis: {},
yAxis:{
min:0,
max:30,
minInterval :10 ,
axisLine: {show: false},
axisTick: {show: false},
splitLine:{
lineStyle: {
type:'dotted'
}
},
axisLabel: {
//show: true,
textStyle: {
color: '#8696AF',
fontSize:'15',
//align:'left',
// inside:true,
//
//rotate:30,
}
},
//splitArea : {show : true}
},
series: [{
name: '',
type: 'bar',
//scale: true,
barWidth:16,
itemStyle: {
normal: {
color: new echarts.graphic.LinearGradient(
0, 0, 0, 1,
[
{offset: 0, color: "rgba(67,232,216,0.8)"},
//{offset: 0.5, color: '#1BA399'},
{offset: 1, color: "rgba(35,116,126,1)"},
]
)
}
},
data: [19, 15, 10, 8, 9, 8, 9 ,10 ,12 ,18,23,19]
}]
};