diff --git a/ruoyi-admin/src/main/resources/static/js/echartsCommon.js b/ruoyi-admin/src/main/resources/static/js/echartsCommon.js index 0f810bf..b98e8f3 100644 --- a/ruoyi-admin/src/main/resources/static/js/echartsCommon.js +++ b/ruoyi-admin/src/main/resources/static/js/echartsCommon.js @@ -1960,18 +1960,21 @@ const multipleVerticalBarChart = function (data, id) { ], }; - if (data?.length >= 3) { + if (data?.xName?.length >= 3) { option.dataZoom.push({ show: true, type: 'slider', + bottom : '0%', xAxisIndex: 0, - width: 12, + height: 12, start: 0, - end: 1 / (data.length / 3) * 100, + end: 1 / (data.xName.length / 3) * 100, textStyle: { fontSize: 0, + color:'rgba(0,0,0,0)' } }) + option.grid.bottom = '7%' } charts.setOption(option); $(window).resize(charts.resize); diff --git a/ruoyi-admin/src/main/resources/templates/broad/fp.html b/ruoyi-admin/src/main/resources/templates/broad/fp.html index bf68aed..3aac920 100644 --- a/ruoyi-admin/src/main/resources/templates/broad/fp.html +++ b/ruoyi-admin/src/main/resources/templates/broad/fp.html @@ -2,17 +2,18 @@ - + 发泡SCADA数据平台 - - - + + + - + - - + + +