[英]How to export highcharts with specified fill color for highcharts background?
我在 angular 中定義了 highcharts 並借助切換按鈕,
我可以更改 .highcharts-background 顏色(使用 css 文件完成)。
這在瀏覽器上運行良好,但導出時我得到默認的白色。
歡迎任何幫助。
如果您不使用樣式模式,則來自 CSS 類的 styles 將不會應用於導出的圖表。 改用backgroundColor
屬性:
chart: {
backgroundColor: 'red'
}
現場演示: http://jsfiddle.net/tsjmkrbw/
文檔: https://www.highcharts.com/docs/chart-design-and-style/style-by-css
API 參考資料:
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.