library(echarts4r)
library(dplyr)
data %>%
arrange(Term) %>%
e_chart(Term) %>%
e_line(
serie = Rate,
smooth = TRUE,
symbol = "circle",
lineStyle = list(color = "#96363D")
) %>%
e_title(
text = "报告期:2024年6月4日",
left = "100",
top = "85",
textStyle = list(fontSize = 12)
) %>%
e_legend(show = FALSE) %>%
e_tooltip(trigger = "axis")
I want to use the echarts4r package to implement the animation version of the above graph, because the horizontal axis is unequal spacing, I don't know how to deal with it. Please advise, thank you!
my data
by ggplot2
Semi-finished code by echarts4r
I want to use the echarts4r package to implement the animation version of the above graph, because the horizontal axis is unequal spacing, I don't know how to deal with it. Please advise, thank you!