"image.png" (https://wmprod.oss-cn-shanghai.aliyuncs.com/images/20241226/50ee29f3fed011ccc1dad496d0353d52.png)
option = {
xAxis: {
max: 'dataMax'
},
yAxis: {
type: 'category',
axisLine:{
show:false
},
axisTick:{
show:false
},
axisLabel:{
show:false,
},
data: ['广州市番禺区1', '广州市番禺区2', '广州市番禺区3'],
},
series: [
{
type: 'bar',
barGap: 0,
data: [
{
value: 120,
itemStyle: {
color: '#fff'
}
},
{
value: 200,
itemStyle: {
color: '#fff'
}
},
{
value: 150,
itemStyle: {
color: '#fff'
}
},
],
barWidth:40,
label: {
show: true,
fontSize:18,
position: [10, 10],
formatter: '{b}',
},
},
{
type: 'bar',
data: [
{
value: 120,
itemStyle: {
color: '#ff0'
}
},
{
value: 200,
itemStyle: {
color: '#ff0'
}
},
{
value: 150,
itemStyle: {
color: '#ff0'
}
},
],
barWidth:20,
label: {
show: true,
position: 'right',
},
}
],
};