From 997ddfc516e4ccec8242a2c49c3d6d7385abbea6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=AE=B5=E5=86=AC=E6=A2=85?= Date: Mon, 17 Dec 2018 04:09:51 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=89=93=E5=8D=B0=E4=B9=8B?= =?UTF-8?q?=E5=89=8D=E5=92=8C=E6=89=93=E5=8D=B0=E4=B9=8B=E5=90=8E=E7=9A=84?= =?UTF-8?q?=E5=9B=BE=E7=89=87=E8=83=8C=E6=99=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/webapp/static/pages/scripts/echart.js | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/src/main/webapp/static/pages/scripts/echart.js b/src/main/webapp/static/pages/scripts/echart.js index 833b14a9c..2feb56f24 100644 --- a/src/main/webapp/static/pages/scripts/echart.js +++ b/src/main/webapp/static/pages/scripts/echart.js @@ -1,4 +1,15 @@ - + Highcharts.setOptions({ // Apply to all charts + chart: { + events: { + beforePrint: function () { + $(".highcharts-background").attr("fill","rgba(48,48,48,1)") + }, + afterPrint: function () { + $(".highcharts-background").attr("fill","rgba(255, 255, 255, 0)") + } + } + } + }); //协议统计分析 function echart_1(rs) { @@ -340,7 +351,7 @@ name: ' ', colorByPoint: true, data: data - }], + }] // drilldown:{ // activeAxisLabelStyle:{ // textDecoration:'none',