Home > Enterprise >  How I can center a title on echarts4r?
How I can center a title on echarts4r?

Time:10-13

Hi and thanks for reading me Anyone knows how I can center a title on a plot maded with echarts4r? Im trying the following code, but it doesnt work:

df <- data.frame(
  x = LETTERS[1:5],
  y = runif(5, 1, 5),
  z = runif(5, 3, 10)
)

df |>
  arrange(y) |> 
  e_charts(x) |>
  e_bar(y) |>
  e_legend(FALSE) |> 
  e_title("Título ejemplo", align = "center") |> 
  e_flip_coords()

Hope anyone can help me, I don't find anything :(

CodePudding user response:

This could be achieved by setting left = "center". See enter image description here

  • Related