In the following reproducible example I would like to map the year value to a continuous color scale (with all the points with a manually selected and fixed size). The points are not of the expected color...
library(echarts4r)
d <- data.frame(
x = rnorm(30),
y = rnorm(30),
year = rep(2000:2014, 2)
)
d |>
e_chart(x) |>
e_scatter(y, symbol_size = 10, bind = year, legend = FALSE) |>
e_visual_map(year, color = c("#8DD3C7", "#FFFFB3", "#BEBADA", "#FB8072")) |>
e_tooltip()