我的結果是: phantomjs/highchart:當導出到PNG/PDF如何處理傳奇溢出
任何建議歡迎。仍然陷在這個問題。 有時,圖例中的項目太多,如何處理圖例溢出。一種方法是根據系列的大小(下面的導出設置)設置高度和寬度。 有什麼更好的辦法?
{
"subtitle": {
"text": "2016-05-19 12:09 to 2016-05-26 12:09"
},
"title": {
"text": "Query"
},
"series": [
],
"yAxis": {
"title": {
"text": "Count"
}
},
"tooltip": {
"pointFormat": "<span style=\\\\"color:{point.color}\\\\">{series.name}</span>: <b>{point.y}</b><br/>"
},
"credits": {
"enabled": false
},
"plotOptions": {
"column": {
"colorByPoint": false
}
},
"xAxis": {
"labels": {
"style": {
"fontSize": "9px"
}
},
"type": "category"
},
"exporting": {
"sourceHeight": 3000,
"chartOptions": {
"chart": {
"height": 2000
},
"legend": {
"maxHeight": 1600
}
}
},
"type": "chart",
"legend": {
"enabled": true
}
}
我試圖修改上述我的代碼來使用未定義作爲maxHeight(maxHeight =未定義)。但失敗了。 – BAE
你可以更新我的代碼與你的介紹這個問題? –
請參閱我的更新。謝謝 – BAE