ramnathv / rCharts

Interactive JS Charts from R
http://rcharts.io
Other
1.19k stars 654 forks source link

Using Shiny, RCharts & datamaps: legend dropped using navbarPage #530

Open smartinsightsfromdata opened 9 years ago

smartinsightsfromdata commented 9 years ago

I posted the issue on stackoverflow (as I did not know where was the bug). http://stackoverflow.com/questions/26225613/using-shiny-rcharts-datamaps-legend-dropped-using-navbarpage. See code example posted on stackoverflow.

According to Joe Cheng of Shiny the problem is with RCharts/RMaps: " The bug appears to be in rCharts/rMaps, not in Shiny; both the map and its rCharts container are being set to 400 pixels high, but the legend is also included in the container. The legend is still there in all cases, but you have to scroll to see it when navbarPage is used. navbarPage seems to make the problem worse because it tells the tabPanel not to simply render content that's too large for it, but to do scrolling instead.

You can confirm that this is a problem even without navbarPage by simply adding the string "hello" as another argument to tabPanel, right after the showOutput() call; you'll see that "hello" is rendered between the map and the legend, when it should appear below the legend."

ramnathv commented 9 years ago

Thanks for the bug report. I will take a look.