离线高级包导出不起作用
此可重现的示例(不适用于我),强制包含exportChartLocal
export <- list( list(text = "PNG",
onclick = JS("function () {this.exportChartLocal(); }")),
list(text = "JPEG",
onclick = JS("function () {this.exportChartLocal({ type: 'image/jpeg' }); }")
)
)
highchart() %>%
hc_chart(type = "line" ) %>%
hc_xAxis(cars$speed) %>%
hc_add_series(cars$dist) %>%
hc_exporting(enabled = TRUE,
allowHTML = F,
fallbackToExportServer = F,
formAttributes = list(target = "_blank"),
buttons = list(contextButton = list(menuItems = export))
)
还是我做错了什么? (我在github https://github.com/jbkunst/highcharter/issues/126上发现了一个有关此问题的开放错误)
我也发现了类似的问题(Highchart export offline),但这对我不起作用