-
-
Notifications
You must be signed in to change notification settings - Fork 81
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Echarts 5.1.1 has the register_map with the option to choose svg and I’m trying to implement it. #319
Comments
Pretty neat, I did not know this was added. Reinstall the latest version and use the new url <- "https://echarts.apache.org/examples/data/asset/geo/Beef_cuts_France.svg"
svg <- url %>%
readLines() %>%
paste0(collapse = "")
data <- tibble::tibble(
name = c(
"Queue",
"Langue",
"Plat de joue",
"Collier",
"Rumsteck"
),
value = runif(5, 10, 15)
)
data %>%
e_charts(name) %>%
e_svg_register("beef", svg) %>%
e_svg(
value,
map = "beef",
label = list(
show = FALSE
)
) %>%
e_visual_map(value) |
Awesome! Thank you very much!! |
I have installed the latest version, using install_github(). But it returns an error |
It should work after restarting the R session.
|
Thanks!! It is working! |
I’m trying to use the new map svg feature of echarts 5.1.1. So, I have manually updated my echarts4r package to the new version. However, I’m missing something when implementing register_map to svg. Like this example: https://echarts.apache.org/examples/en/editor.html?c=geo-beef-cuts
So I trying to implant this way:
The Echarts js code:
The equivalent in R:
As you can se the equivalent would use a named and an unnamed list, and R doesn’t allow that.
Any Idea of what could help?
Complete code:
Thank you
The text was updated successfully, but these errors were encountered: