Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upe_radar some parameters don't work #98
Comments
|
I'm afraid radar series do not have |
|
I want to draw multiple radar, like this. In this example, I find center parameter can adjust position, radius parameter can adjust size. |
|
OK. Coming back to this issue. I apologise, I was a bit hasty in saying it's not doable. There is indeed a
install.packages("remotes")
remotes::install_github("JohnCoene/echarts4r")
The example below produces pretty much the same output as you want, df <- data.frame(
x = LETTERS[1:5],
y = runif(5, 1, 5),
z = runif(5, 3, 7),
w = runif(5, 2, 6)
)
r1 <- df %>%
e_charts(x, elementId = "radar1") %>%
e_radar(y, max = 7) %>%
e_radar_opts(center = c("50%", "35%"))
r2 <- df %>%
e_charts(x, elementId = "radar2") %>%
e_radar(z, max = 7)
r3 <- df %>%
e_charts(x, elementId = "radar3") %>%
e_radar(w, max = 7) %>%
e_radar_opts(center = c("50%", "35%")) %>%
e_connect(c("radar1", "radar2", "radar3")) # connect
e_arrange(r1, r2, r3, cols = 3, rows = 1)I hope this helps. |
|
It's a very good solution . Thank you ! |
Hi John,
when I want to change the radar layout, I find (center, radius )parameters don't work. Below is my code.