e_locale {echarts4r} | R Documentation |
Locale
Description
Change the locale to auto-translate days of the week, etc.
Usage
e_locale(e, locale)
e_locale_manual(e, locale, path)
Arguments
e |
An |
locale |
Locale to set to. |
path |
Path to the local file to use. |
Details
The "manual" function expects a file to use for translations. You can browse the '.js' files [here](https://github.com/apache/echarts/tree/master/i18n) to have an idea of what they should look like.
Locales
- CS - DE - EN - ES - FI - FR - JA - PT (brazil) - SI - TH - ZH
Examples
# top right corner zoom is in
# French
cars |>
e_charts(speed) |>
e_scatter(dist) |>
e_datazoom() |>
e_locale("FR")
[Package echarts4r version 0.4.5 Index]