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

Rendering multiple plotly plots at once only renders one plot #330

Open
Luke-Symes-Tsy opened this issue Dec 8, 2023 · 0 comments
Open

Comments

@Luke-Symes-Tsy
Copy link

I have a Shiny app that is supposed to render several plotly plots when the user uploads some data. However, when running it on webr, only one of the plots displays.

I made a minimal working example on shinylive.io.

There seem to be a couple of errors. Firstly, before loading the data:

TypeError: Cannot read properties of null (reading 'deps')
at shinyBinding.renderValue (htmlwidgets.js:515:44)
at e. (shiny.min.js:2:156995)
at m (shiny.min.js:2:149459)
at Generator. (shiny.min.js:2:150782)
at Generator.next (shiny.min.js:2:149818)
at LS (shiny.min.js:2:155429)
at s (shiny.min.js:2:155627)
at shiny.min.js:2:155688
at new Promise ()
at e. (shiny.min.js:2:155568)

Then, after loading the data:

Uncaught (in promise) ReferenceError: Plotly is not defined
at Object.renderValue (plotly.js:162:18)
at htmlwidgets.js:539:22

I wonder if it is related to the patch made to htmlwidgets to use Shiny.renderDependenciesAsync?

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

1 participant