Change the locale to auto-translate days of the week, etc.

e_locale(e, locale)

Arguments

e

An echarts4r object as returned by e_charts or a proxy as returned by echarts4rProxy.

locale

Locale to set to.

Locales

- CS - DE - EN - ES - FI - FR - JA - PT (brazil) - SI - TH - ZH

Examples

# top right corner zoom is in 
# Portuguese
cars |> 
 e_charts(speed) |> 
 e_scatter(dist) |> 
 e_datazoom() |> 
 e_locale("PT")