我尝试使用此link来导出highcharts
中的csv按钮,但它无效。请找到相关的highchart() %>%
hc_chart(type = "line") %>%
hc_title(text = "Monthly Average Temperature") %>%
hc_subtitle(text = "Source: WorldClimate.com") %>%
hc_xAxis(categories = c('Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun',
'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec')) %>%
hc_yAxis(title = list(text = "Temperature (C)")) %>%
hc_plotOptions(line = list(
dataLabels = list(enabled = TRUE),
enableMouseTracking = FALSE)
) %>%
hc_series(
list(
name = "Tokyo",
data = c(7.0, 6.9, 9.5, 14.5, 18.4, 21.5, 25.2, 26.5, 23.3, 18.3, 13.9, 9.6)
),
list(
name = "London",
data = c(3.9, 4.2, 5.7, 8.5, 11.9, 15.2, 17.0, 16.6, 14.2, 10.3, 6.6, 4.8)
)
) %>%
hc_exporting(enabled=T)
代码here
感谢。 例如:
plus
答案 0 :(得分:1)
请查看http://jkunst.com/highcharter/plugins.html#exporting-csv它已在开发版本中添加,发布将在几天内发布为0.5.0。
hc <- highcharts_demo()
hc %>%
hc_exporting(
enabled = TRUE
)