Closed awcm0n closed 1 year ago
I see what you mean. I guess it is a problem caused by something at the js side, not the R side.
At least you can use a trick by picking a higher x axis maximum (e.g. 5%). This way the problem is not eminent anymore:
df |>
e_charts(x) |>
e_scatter(y, size = z) |>
e_datazoom() %>%
e_x_axis(max = max(df$x) + (0.05 * max(df$x)))
Or you can set max = 6
in this particular case to make the x axis a little less specific.
Maybe not the cleanest solution, but does this help you?
It depends on the zoom starting value whether the data point with the largest x value is shown. The figure contains an illustration based on the following code: