http://www.hcharts.cn/ highcharts官網網址
1、去掉官網的鏈接
credits:{
enabled:false
},
添加自己需要的網站連接
credits:{
text:"某某公司",
href"http://"
},
2、去掉chart content menu 打印功能 圖像生成png jpg svg等
exporting:{
enabled:true //用來設置是否顯示‘打印’,'導出'等功能按鈕,不設置時默認爲顯示
},
3、 去掉打印功能
JS去除打印功能
exporting.js 圖表庫去掉 以下代碼
printButton : {
symbol :"printIcon",
x :-36,
symbolFill :"#B5C9DF",
hoverSymbolFill :"#779ABF",
_titleKey :"printButtonTitle",
onclick : function() {
this.print()
}
}
4、 highcharts 打印 功能
<span style="white-space:pre"> </span>exporting:
<span style="white-space:pre"> </span>{
//enabled:true,默認爲可用,當設置爲false時,圖表的打印及導出功能失效
buttons:{ //配置按鈕選項
printButton:{ //配置打印按鈕
width:50,
symbolSize:20,
borderWidth:2,
borderRadius:0,
hoverBorderColor:'red',
height:30,
symbolX:25,
symbolY:15,
x:-200,
y:20
},
exportButton:{ //配置導出按鈕
width:50,
symbolSize:20,
borderWidth:2,
borderRadius:0,
hoverBorderColor:'red',
height:30,
symbolX:25,
symbolY:15,
x:-150,
y:20
},
},
filename:'52wulian.org',//導出的文件名
type:'image/png',//導出的文件類型
width:800 //導出的文件寬度
},
exporting屬性詳解
參數 | 說明 | 默認值 |
---|---|---|
buttons:{ exportButton:{…}, printButton:{…} } |
按鈕屬性,包括導出按鈕(exportButton)及打印按鈕(printButton)。 可配置相應按鈕中具體的屬性來改變按鈕的大小、樣式等 |
|
enabled | 是否使用該功能,當我false時,則圖表沒有導出及打印功能 | true |
filename | 導出圖片文件的文件名,不包含後綴 | chart |
type | 導出圖的類型,有image/png, image/jpeg, application/pdf可選 | image/png. |
url | 導出功能的服務器地址,導出功能需要相應的服務提供支持。你可以自己搭建服務器,在/exporting-server目錄下有相應的源文件 | http://export.highcharts.com |
width | 導出圖片文件的寬度,相應的,高度這按照比例 | 800.0 |