This is what I want
I am trying to replicate the chart above (with the labels on the bars) in R using echart4r package. For the axis labels to appear on the bars, I used axisLabel = list(inside = TRUE) inside e_x_axis() as in the code below. But this does not work as the labels are hidden by the bars.
Name <- c("Jon", "Bill", "Maria", "Ben", "Tina")
Age <- c(23, 41, 32, 58, 26)
df <- data.frame(Name, Age)
df %>%
e_charts(Name) %>%
e_bar(Age) %>%
e_x_axis(
inverse = TRUE,
axisLabel = list(inside = TRUE),
axisTick = list(show = FALSE),
axisLine = list(show = FALSE)
) %>%
e_legend(show = FALSE) %>%
e_flip_coords()
This is what I get
Any idea?