Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Esquisse module in flexdashboard with shiny is not rendering #160

Open
lodderig opened this issue Apr 27, 2021 · 3 comments
Open

Esquisse module in flexdashboard with shiny is not rendering #160

lodderig opened this issue Apr 27, 2021 · 3 comments

Comments

@lodderig
Copy link

I tried to adapt the example of the esquisse module for shiny to a flexdashboard with shiny but the plots are not rendering.
It reads the column names but it does not update the chart selection nor does it render a plot.

see https://stackoverflow.com/questions/67284944/ggplot-plot-from-esquisse-package-not-rendering-in-flexdashboard

@pvictor
Copy link
Member

pvictor commented Apr 29, 2021

That's weird, this seems specific to flexdashboard
It looks like shiny thinks that the graph is not displayed on the screen and therefore does not do the reactive calculation... maybe due to some CSS...

@Edouard-Legoupil
Copy link

Hi, @lodderig Did you found a solution? @pvictor - Would be awesome if you could provide a working example

@lstehlik2809
Copy link

lstehlik2809 commented Jan 30, 2022

@lodderig, @Edouard-Legoupil, I have put esquisse_ui() function into renderUI() function and it works fine. Give it a try.

Full example:

esqSData <- reactiveValues(data = mydata, name = "My Data")

esquisse_server(
  id = "esquisse",
  data_rv = esqSData,
  import_from = c("env", "file", "copypaste", "googlesheets") )

renderUI(
  esquisse_ui(
    id = "esquisse",
    header = TRUE,
    container = esquisseContainer(),
    controls = c("labs", "parameters", "appearance", "filters", "code"),
    insert_code = FALSE
    )
)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants