Amchart - 导出带有背景图像的饼图?

Amchart - Export pie chart with background image?

我必须制作带有背景图片的饼图。单击导出图标时,它会显示添加到 css 的背景图像。但是下载文件时,图像丢失了。 我在导出中看到 'fabric' 选项。是否有设置背景图片的属性或方法?

    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" ]
        } ]
      } ]
    } ]
  }
} );

您可以使用 before Capture 功能设置背景图像。

"export": {
      "enabled": true,
      "pageOrientation": "landscape",
      "beforeCapture": function() { 
           var cloneChart = this.setup.chart;
           cloneChart.backgroundImage="$image_url";
       }
}