[英]Amchart - Export pie chart with background image?
我必須用背景圖像制作餅圖。 單擊導出圖標時,它顯示了添加到 css 的背景圖像。 但是當下載文件時,圖像丟失了。 我在出口中看到了“面料”選項。 是否有任何屬性或方法來設置背景圖像?
AmCharts.makeChart( "chartdiv", {
"export": {
"enabled": true,
"fabric":{},
"menu": [ {
"class": "export-main",
"menu": [ {
"label": "Download",
"menu": [ "PNG", "JPG", "CSV" ]
}, {
"label": "Annotate",
"action": "draw",
"menu": [ {
"class": "export-drawing",
"menu": [ "PNG", "JPG" ]
} ]
} ]
} ]
}
} );
您可以使用捕獲功能之前設置背景圖像。
"export": {
"enabled": true,
"pageOrientation": "landscape",
"beforeCapture": function() {
var cloneChart = this.setup.chart;
cloneChart.backgroundImage="$image_url";
}
}
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.