-
Notifications
You must be signed in to change notification settings - Fork 300
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
NetworkD3 plots zoomed in when switching pages #68
Comments
I am having the same problem with a different html widget package. The plot on the first page sizes correctly but the second one does not. This is the case even if identical plots are rendered see gist. |
These problems are almost certainly due to the htmlwidgets not properly On Sat, Jun 25, 2016 at 3:59 AM, Matt Johnson notifications@github.com
|
@mcharles I can confirm Many charting libraries provide a @mrjoh3, if you need help, I can try to help on |
after checking, I had not properly implemented the resize method the @timelyportfolio, any assistance/advice would be greatly appreciated. I seem to be halfway there using the please see this commit |
I have finally tracked the problem but am not sure if it is a problem with I suspect others are having the same or similar problems (see this networkD3 issue and this SO question. |
I think there are a couple of ways to go here:
@jcheng5 Do you have a viewpoint on what the best approach to this issue is? This also recently came up with rbokeh because bokeh itself throws an exception if you try to render it with zero width/height. I'd expect lots of libraries would have the same issue and I'm not sure if it's reasonable for us to ask all the widget authors to check for zero size and return. |
This appears to be a problem that htmlwidgets or the networkD3 package should resolve (or have resolved). I don't see any actions in this conversation that flexdashboard should take. Thanks again to everyone for the report and suggestions. |
I'm encountering an issue when I create 2 SankeyNetwork plots and wish to display them on separate pages of a Dashboard.
The first plot loads on the first page with no issue - looking exactly as it should.
However, when I flip to the second page, the second SankeyNetwork plot is tremendously zoomed in - making it unreadable. Clicking 'refresh' automatically fixes the plot - bringing it back to it's correct perspective. Then - when I click back to the first page - that plot is zoomed in in the same manner.
It doesn't appear to matter which plot I place on the first or second pages... Is there some sort of caching setting I need to alter?
The text was updated successfully, but these errors were encountered: