This document include the standard chart types only.

Line and Area

Bar and step

df %>% 
  e_charts(x) %>% 
  e_bar(y, name = "Serie 1") %>% 
  e_step(z, name = "Serie 2") %>% 
  e_title("Bar and step charts")

Scatter

df %>% 
  e_charts(x) %>% 
  e_scatter(y, z) %>% 
  e_visual_map(z, scale = e_scale) %>% # scale color
  e_legend(FALSE) # hide legend

Effect Scatter

df %>% 
  head(10) %>% 
  e_charts(x) %>% 
  e_effect_scatter(y, z) %>% 
  e_visual_map(z) %>% # scale color
  e_legend(FALSE) # hide legend

Polar

df %>% 
  e_charts(x) %>% 
  e_polar() %>% 
  e_angle_axis(x) %>% # angle = x
  e_radius_axis() %>% 
  e_bar(y, coord_system = "polar") %>% 
  e_scatter(z, coord_system = "polar")

Radial

df %>% 
  head(10) %>% 
  e_charts(x) %>% 
  e_polar() %>% 
  e_angle_axis() %>% 
  e_radius_axis(x) %>% 
  e_bar(y, coord_system = "polar") %>% 
  e_scatter(z, coord_system = "polar")

Candlestick

GS %>% 
  e_charts(date) %>% 
  e_candle(GS.Open, GS.Close, GS.Low, GS.High, name = "Goldman Sachs") %>% 
  e_datazoom(type = "slider") %>% 
  e_title("Candlestick chart", "Quantmod data")

Funnel

Sankey

Heatmap

Parallel

Pie

mtcars %>% 
  head() %>% 
  dplyr::mutate(model = row.names(.)) %>% 
  e_charts(model) %>% 
  e_pie(carb) %>% 
  e_title("Pie chart")

Donut

mtcars %>% 
  head() %>% 
  dplyr::mutate(model = row.names(.)) %>% 
  e_charts(model) %>% 
  e_pie(carb, radius = c("50%", "70%")) %>% 
  e_title("Donut chart")

Rosetype

mtcars %>% 
  head() %>% 
  dplyr::mutate(model = row.names(.)) %>% 
  e_charts(model) %>% 
  e_pie(hp, roseType = "radius")

Sunburst

Tree

Treemap

River

Calendar

For multiple years, lay multiple calendars, group by year.

year %>% 
  dplyr::mutate(year = format(date, "%Y")) %>% # get year from date
  group_by(year) %>% 
  e_charts(date) %>% 
  e_calendar(range = "2017",top="40") %>% 
  e_calendar(range = "2018",top="260") %>% 
  e_heatmap(values, coord_system = "calendar") %>% 
  e_visual_map(max = 30) %>% 
  e_title("Calendar", "Heatmap")%>%
  e_tooltip("item") 

Gauge

e_charts() %>% 
  e_gauge(41, "PERCENT") %>% 
  e_title("Gauge")

Radar

df <- data.frame(
  x = LETTERS[1:5],
  y = runif(5, 1, 5),
  z = runif(5, 3, 7)
)

df %>% 
  e_charts(x) %>% 
  e_radar(y, max = 7, name = "radar") %>%
  e_radar(z, max = 7, name = "chart") %>%
  e_tooltip(trigger = "item")

Wordcloud

Liquifill