ramnathv / rCharts

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

Interactive features don't show up when using Rickshaw with Shiny #146

Open Mullefa opened 11 years ago

Mullefa commented 11 years ago

For an example see:

http://stackoverflow.com/questions/17411584/r-rcharts-and-shiny-rickshaw-plot-wont-show

ramnathv commented 11 years ago

Here is a gist with a solution to your problem. You will see that I have defined a modified version of renderChart called renderChart2, that includes all the divs including those containing the interactive features. In addition, you will see that I have included a css file called rickshaw.css, which is required to place all the elements correctly.

In the static version of the chart, these elements are already a part of the template, therefore not requiring any additional work. In the Shiny version, you will need to do these tweaks to get it working. I am thinking about how best to add these features to rCharts, so that you won't need to do any kind of hacking in the future. I am leaving this issue open to serve as a reminder to me, to make these changes at the package level.

avinashmaheshjoshi commented 10 years ago

Hey, any updates on this? I am trying to use the Rickshaw example to plot a zoomable timeseries in shiny and the interactive slider still doesn't come up.

najsaqib commented 7 years ago

Was wondering where this feature stands at the moment. I am assuming that it hasn't been added to the package and that the modified renderChart function and CSS file workaround is still the primary solution?