Skip to content

e_arrange() causes scrolling in RStudio 'Viewer' pane #677

@jack-davison

Description

@jack-davison

Hello! Easiest to describe this in comparison to {plotly}, which flows to fill the viewer area in RStudio.

test <- data.frame(x = letters, y = 1:26)
plotly <-
  plotly::plot_ly(test, x = ~x, y = ~y) |>
  plotly::add_bars()

plotly::subplot(plotly, plotly, nrows = 2)
Image

{echarts4r} appears to fix the heights of plots in e_arrange(), meaning you end up needing to scroll:

echarts <-
  echarts4r::e_charts(test, x) |>
  echarts4r::e_bar(y)

echarts4r::e_arrange(echarts, echarts, rows = 2)
Image

I don't know if it is at all possible to make e_arrange() outputs 'fluid' in this way? I note that a single echart on its own resizes to fit the viewer box, the behaviour seems to go away when its arranged with other charts.

Thanks!
Jack

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions