knitr::opts_chunk$set( collapse = TRUE, comment = "#>" ) library(echarts4r) e_common( font_family = "Raleway" )
The toolbox allows you to add neat little interactive functions to your plots.
mtcars |> e_charts(qsec) |> e_line(mpg, smooth = TRUE) -> echart echart |> e_toolbox_feature(feature = "saveAsImage") # hit the download button!
echart |> e_toolbox_feature(feature = "dataZoom")
echart |> e_toolbox_feature(feature = "dataView")
See the official documentation for the full list.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.