danielkrizian / rChartsDygraphs

An `rCharts` extension. Run `dygraphs` from R - interactive visualizations of time series using JavaScript and HTML canvas. See: http://dygraphs.com/ and
http://rcharts.io/
9 stars 10 forks source link

shiny rChartsDygraphs integration #25

Closed jangorecki closed 10 years ago

jangorecki commented 10 years ago

I'm trying to put dygraphs inside the shiny application. When trying to render graph as usually in shiny/rCharts I get following error in js console dygraphs: Constructing dygraph with a non-existent div! which reffers to dygraph.js#L422

I found this repo: timelyportfolio/rCharts_dygraphs_shiny which simply uses renderChart_nosize function, its body looks quite mysterious for me. Anyway it plots the dygraph in shiny application but it lose the zooming capability also it do not scale to appropriate height and width (which can be seen in the _nosize function body). All these makes @timelyportfolio workaround less useful.

Is there any better way to integrate rChartsDygraphs into shiny?

jangorecki commented 10 years ago

I see ongoing discussion in #4. I will close this issue to do not double the same case.

timelyportfolio commented 10 years ago

Nevertheless, I have updated timelyportfolio/rCharts_dygraphs_shiny to use the standard rCharts renderChart2 which works correctly. Please let me know if it does not work for you.

By the way, never been called "mysterious". Kind of like it :)

jangorecki commented 10 years ago

Thanks for clarification. I can confirm it is working fine with renderChart2 so no workaround function is required. And "mysterious" because I'm not much into ref classes in R.