In Quarto, when using a small screen, the chart doesn't rescale as well as in a standalone format. My guess is that there's a configuration in Quarto css that prevents the font from becoming too small and hardly legible, but in some cases, it would be great to be able to scale it down. I wasn't sure whether my ‘issue’ is better reported here or directly to Quarto. Also, there is no "overflow" and bar to slide on the right or the left. Here’s an example:
example.qmd
---
title: "reprex"
---
## Quarto
Render with `quarto render example.qmd`
library(echarts4r)
mtcars |>
e_charts(qsec) |>
e_line(mpg) |>
e_title("My long title plot, whose font doesn’t become too small, still doesn’t look good on a phone screen.")
If you don't use quarto, and play with the standalone version, it works fine (even if illegible)
I tried to figure out which css option to change (for this plot only), but couldn't find the solution. Thanks for the work, great library!
In Quarto, when using a small screen, the chart doesn't rescale as well as in a standalone format. My guess is that there's a configuration in Quarto css that prevents the font from becoming too small and hardly legible, but in some cases, it would be great to be able to scale it down. I wasn't sure whether my ‘issue’ is better reported here or directly to Quarto. Also, there is no "overflow" and bar to slide on the right or the left. Here’s an example:
example.qmd
If you don't use quarto, and play with the standalone version, it works fine (even if illegible)
I tried to figure out which css option to change (for this plot only), but couldn't find the solution. Thanks for the work, great library!