为了在一个按钮上导出多个文件中的图表,请使用批导出功能来实现这一点,下面是一个代码段
batchExportConfig1 = function() {
FusionCharts.batchExport({
"charts": [{
"id": "chart-1",
}],
"exportFileName": "chart1",
"exportFormat": "jpg"
})
FusionCharts.batchExport({
"charts": [{
"id": "chart-2",
}],
"exportFileName": "chart2",
"exportFormat": "jpg"
})
FusionCharts.batchExport({
"charts": [{
"id": "chart-3",
}],
"exportFileName": "chart3",
"exportFormat": "jpg"
})
FusionCharts.batchExport({
"charts": [{
"id": "chart-4",
}],
"exportFileName": "chart4",
"exportFormat": "jpg"
})
}
这是一把样品小提琴-
http://jsfiddle.net/khjt8c7m/