I’ve recently managed to reproduce my first charts using the nice package rNVD3 from Ramnath Vaidyanathan:
This rNVD3 package uses NVD3, which provides re-usable charts with d3.js, without taking away the power that d3.js brings with itself. But let’s make a “Hello world” type of example, with the minimum complexity in it.
For this, I just needed to copy one of Ramnath’s examples, but I will save the html to disk, with something like
object$save('foo.html') instead of
object$printChart('foo.html'). used in his example
And then, you can load the html in a wiki page with an iframe. Easy.
Proof of concept
A working proof-of-concept reusing your rNVD3 package can be found here:
The main code is this one:
Plugin execution pending approval
This plugin was recently added or modified. Until an editor of the site validates the parameters, execution will not be possible.Plugin execution pending approval
This plugin was recently added or modified. Until an editor of the site validates the parameters, execution will not be possible.
And once everything is ready in your system (all packages installed, etc), you’ll see something like this:
And when you change from “Grouped display” to “Stacked display”, you will see a transition of data changing from one display to the other in real time in your browser, ending with this:
This example has been added as a new test (r_test7) in the Tiki configuration profile http://profiles.tiki.org/r_test . Therefore, when you apply ( ~ install) this profile in your Tiki, you’ll have this whole test loaded in a new wiki page, handy for you to play with it.
For later I leave my goal to achieve running some shiny app from a Wiki page in Tiki (in case this is possible!, which I’m not sure yet, maybe some new development is needed)
For the time being, I’m quite glad with the first impression by the rNVD3 author (Ramnath Vaidyanathan) when he first knew about this proof-of-concept a few hours ago:
Oh well, thanks for you nice words. Some more work is in the oven with PluginR, so stay tuned!