This commit is contained in:
lcw
2025-10-23 00:59:37 +08:00
parent d7b2ff4d50
commit fb04264e36

View File

@ -52,22 +52,17 @@ const option = {
data: ["第一产业", "第二产业", "第三产业"] data: ["第一产业", "第二产业", "第三产业"]
}, },
yAxis: { yAxis: {
//确保所有网格线都显示 //显示网格线
splitLine: { splitLine: {
show: true, show: true,
lineStyle: { lineStyle: {
color: '#A1C7CD', color: ['#A1C7CD'],
opacity: 0.3, opacity: 0.2,
type: 'solid', type: 'solid'
width: 1
} }
}, },
//设置y轴范围和间隔以显示更多网格线
min: 0,
max: 600, //根据数据最大值设置合适的范围
interval: 100, //设置固定间隔以确保显示足够的网格线
axisLine: { axisLine: {
show: false show: true
}, },
axisTick: { axisTick: {
show: false show: false