I want to reproduce this gradient color effect using echarts in R https://www.programmersought.com/article/75124213435/.
As far as I have understood it is possible to recreate all echarts in R using nested lists. I´ve tried following some of the examples from here https://www.programmersought.com/article/75124213435/ but I quickly realized that I don't know how to use the lists or the arguments to get the gradient colors.
This is what I have done so far:
library(echarts4r)
df <- data.frame(
x = LETTERS[1:10],
y = round(runif(10, 1, 5) * 2 ) /2
)
df %>%
e_charts(x) %>%
e_radar(y, max = 5,
areaStyle = list(
list(color = "green"),
list(color = "red")
),
itemStyle = list(
list(color = "green"),
list(color = "red")
))
I am stuck here and would appreciate some help on how to go from here.