Combining the power of R and D3.js
blog.ae.be
blog.ae.be
It's a work in progress, but something to watch out for, imho
Rstudio now offers HTMLWidgets which allow for interactive chart generation natively, which is interesting: http://blog.rstudio.org/2014/12/18/htmlwidgets-javascript-da...
As for your question, data goes back to the "server" (there's go code interacting with the APL interpreter and sanitising inputs and outputs, converting to JSON, etc) but this is expected to be used as a local service (using a port not listening to the outside world), so no, no arbitrary code execution failsafes (if I were to deploy it in some real, server-ed way I'd isolate interpreters via sessions in the go 'middle' layer).
You get interactive freechart dialogues (and much more).
Library: https://github.com/incanter/incanter
A few (impressive) slides: http://incanter.org/docs/data-sorcery-new.pdf
1) Use R clean the data
2) Use R to turn the raw data into analytically data
3) Use R to do exploratory charting etc
[Most project stop here]
4) Final Product: RMarkdown (For static reports), Shiny (Interactive variable charts), or now D3 if I want to have interactive charts. My interactive charts would be very few.
I wouldn't want to do the first three steps with javascript.