Authored by 鲁尚清

告警中心-通知统计-图形X轴名称压缩,修改x轴为可伸缩,柱子宽度从40%调整为20px

... ... @@ -169,7 +169,7 @@ layui.define(['common', 'admin', 'echarts', 'common', 'table', 'sessions'], func
grid: {
left: '3%',
right: '4%',
bottom: '3%',
bottom: '12%',//lsq 2022-03-10
top: '20',
containLabel: true
},
... ... @@ -184,7 +184,7 @@ layui.define(['common', 'admin', 'echarts', 'common', 'table', 'sessions'], func
color: '#000000',
show: true,
interval: 0,
rotate: 30,
rotate: 10,//lsq 2022-03-10 x轴标签不需要角度,注释
fontSize: '10',
},
}
... ... @@ -197,7 +197,7 @@ layui.define(['common', 'admin', 'echarts', 'common', 'table', 'sessions'], func
series: [
{
type: 'bar',
barWidth: '40%',
barWidth: '20',//lsq 2022-03-10 柱子宽度更改
data: line,
itemStyle: {
normal: {
... ... @@ -218,7 +218,18 @@ layui.define(['common', 'admin', 'echarts', 'common', 'table', 'sessions'], func
}
}
}
]
],
//start x轴拖动 lsq 2022-03-10
dataZoom: [
{
type: "slider",
realtime: true, //拖动滚动条时是否动态的更新图表数据
height: 25, //滚动条高度
start: 5, //滚动条开始位置(共100等份)
end: 55 //结束位置(共100等份)
}
],
//end lsq 2022-03-10
};
myChart.setOption(option)
}
... ...