You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a JupyterChart in a solara app. I would like the chart to respond to width changes of the container its sitting in.
By monkey-patching the css it mostly works, however on initial render the chart has a width of zero (action menu button does show correctly), and only when I resize the container or the 'green' one next to it, is the chart correctly rendered.
Is there a way I can dispatch a resize event on initial render?
There currently is a deprecation warning from anywidget where direct export of render might be removed in favour of a split in initialize and render. Perhaps an initial resize event should be trigger there? More info here: manzt/anywidget#395
I have a JupyterChart in a solara app. I would like the chart to respond to width changes of the container its sitting in.
By monkey-patching the css it mostly works, however on initial render the chart has a width of zero (action menu button does show correctly), and only when I resize the container or the 'green' one next to it, is the chart correctly rendered.
Is there a way I can dispatch a resize event on initial render?
There currently is a deprecation warning from anywidget where direct export of render might be removed in favour of a split in
initialize
andrender
. Perhaps an initial resize event should be trigger there? More info here: manzt/anywidget#395solara app code:
Initial render:
After resizing the chart card:
The text was updated successfully, but these errors were encountered: