修改打印之前和打印之后的图片背景

This commit is contained in:
段冬梅
2018-12-17 04:09:51 +08:00
parent 94eb5991af
commit 997ddfc516

View File

@@ -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) { function echart_1(rs) {
@@ -340,7 +351,7 @@
name: ' ', name: ' ',
colorByPoint: true, colorByPoint: true,
data: data data: data
}], }]
// drilldown:{ // drilldown:{
// activeAxisLabelStyle:{ // activeAxisLabelStyle:{
// textDecoration:'none', // textDecoration:'none',