[英]HIghcharts, button text undefined
我已經 瀏覽了 API ,但找不到定義自定義導航按鈕的替代文本的位置。
任何人都可以幫忙嗎?
這是我的導出選項中的示例:
exporting: {
buttons: {
contextButtons: {
enabled: false,
menuItems: null
},
contextButton: {
menuItems: null,
symbol: 'url()',
symbolX: 1,
symbolY: 1,
width: 1,
height:1,
onclick: function() {
return false;
}
},
'downButton': {
symbol: 'url(img/glyphicons/glyphicons_200_download.png)',
symbolX: 13,
symbolY: 13,
width: 26,
height:26,
onclick: function() {
this.exportChart();
}
}
},
type: 'image/png'
},
_titleKey
就是你想要的。 有關示例,請參見http://jsfiddle.net/x36qR/1/ 。
確保在圖表對象中定義 lang: { } 參數
然后使用 _titleKey: "example" 在 lang 中設置所需的標題
.highcharts({
lang:{
example: "Title Name"
},
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.