修改数据请求

master
夜笙歌 4 years ago
parent ac50af425e
commit c61b302001

@ -4129,6 +4129,22 @@ const multipleBrokenLineAreaDiagram = (data, ids) => {
],
};
if (data?.xData?.length >= 4) {
option.dataZoom.push({
show: true,
type: 'slider',
bottom: '0%',
xAxisIndex: 0,
height: 12,
start: 0,
end: 1 / (data.xData.length / 4) * 100,
textStyle: {
fontSize: 0,
color: 'rgba(0,0,0,0)'
}
})
option.grid.bottom = '7%'
}
charts.setOption(option);
$(window).resize(charts.resize);

Loading…
Cancel
Save