block by ramnathv 10022693

Building an rCharts Library

I very frequently get asked this question as to what is the best way to get started with building an rCharts library. While rCharts ships with its own bindings, I tend to see it more as a framework that allows one to seamlessly plug into other javascript visualization libraries, or even custom visualizations for that matter.

I will be writing a more detailed developer guide on how to build rCharts bindings for a library or chart of interest. For now, the knowledge is scattered across blog posts and my objective here is to consolidate them to provide some structure for anyone trying to build their own binding.

I will start with two posts of my own, where I deconstruct the process of going from a javascript visualization library to an rCharts binding. I take the example of uvCharts, which is a wrapper around d3.js, and explain how to go about integrating it within the rCharts framework.

You can see another example of the same process here integrating the amazing micropolar library by @d3visualization.

While libraries that support multiple chart types were the initial goal for rCharts, I realized that it is extensible to allow one-off visualizations. An excellent post by @timelyportfolio that I would recommend, explains the process of building an rCharts binding for the d3_horizon plot

Yet another example is this implementation of scatterplot matrices by Ben Hunter.

Beyond these resources, you can always use the github repo for rCharts to post questions on the issues page, and we will be happy to help.

Happy rCharting!