I moved the inclusion of the theme url outside of renderChart2
, directly into ui.R
. The reason for this is that afterScript
is only included in the static template for charts. The shiny version only outputs the chart related HTML and currently does not include the contents of afterScript
. You could consider this a bug in the implementation of rCharts and I hope to fix it in future versions.