timelyportfolio / rcdimple

htmlwidgets for rCharts + dimple
http://www.buildingwidgets.com/blog/2015/3/18/week-11-dimple-as-htmlwidget
MIT License
28 stars 9 forks source link

rcdimple not working with rCharts #30

Open abhy3 opened 8 years ago

abhy3 commented 8 years ago

I am creating a choropleth map using datamap in rMaps and rCharts. I also need to create a line plus bar chart in the same Shiny app and I am using layers in rcdimple to do that.

But with rCharts loaded the rcdimple chart is not showing up and there is a error in console:

 Uncaught TypeError: Cannot read property '_hasCategories' of null   dimple.v2.1.2.min.js:2

I tried adding _addlib=F to showOutput as in this question http://stackoverflow.com/questions/29211664/controlling-layout-of-multiple-dimple-charts-in-shiny

In my case I was able to plot datamap by adding _addlib=F to showOutput and following line ui.R though I am not clear what this does but the rcdimple chart is still not plotted.

tags$head(get_assets_shiny(get_lib("datamaps"))[-1])

Any suggestions to use these 2 packages together?

Link to SO question: http://stackoverflow.com/questions/37166570/rcdimple-not-working-with-rcharts