From 451300fc5448657daeb61f85d2d81af1463b9cbe Mon Sep 17 00:00:00 2001 From: Jason <1432334894@qq.com> Date: Wed, 3 Aug 2022 19:20:36 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A6=96=E9=A1=B5echart=E5=9B=BE=E8=A1=A8?= =?UTF-8?q?=E5=9C=A8=E7=A7=BB=E5=8A=A8=E7=AB=AF=E6=A0=B7=E5=BC=8F=E9=94=99?= =?UTF-8?q?=E4=B9=B1=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- view/templates/index/home.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/view/templates/index/home.html b/view/templates/index/home.html index 1e5b142..1c2c651 100644 --- a/view/templates/index/home.html +++ b/view/templates/index/home.html @@ -321,7 +321,8 @@ function createCharts(charts_dates, charts_values, value_name) { // 使用刚指定的配置项和数据显示图表。 if($(document).width()<=750) { - option.grid.left = 40; + option.grid.left = 0; + option.grid.width = '100%'; } myChart.setOption(option); }