I believe this was a newer implementation of rCharts. Try installing from that branch, but after running be sure to get current again. I was playing around with how to handle dates like googleVis.
require(devtools)
install_github("rCharts","timelyportfolio",ref="dimple_layer")
Also, you will need to do like in the updated code.R
dy1$setTemplate(afterScript = "<script></script>"
You might notice that dygraphs is not fully developed. We are starting an rChartsExtra to house the experiments/alternate libraries.