I am exploriing rCharts. I got stuck while adding Lables to Y axis and Headings. I am new to rCharts.
This is my sample code
require(rCharts)
n2 <- nPlot(Hours ~ Month, group = "Task", data = cars, type = "multiBarChart",
height = 900, width = 1110)
n2$xAxis(axisLabel = 'Year and Month')
n2
Please help.
answer supplemented with title examples 2013-12-05
I cannot remember why
nvd3
withrCharts
does this but we have discovered this in this issue. The method suggested in that issue works, but usingmargin
is probably the more robust method. I have put a quick example together of both ways. Let me know how this works.now let's add a title
There are a couple ways to achieve this. I currently prefer using a script template with
rCharts
. Here are two examples. An<h3>
element is inserted in therCharts
div. The two templates live in this repo if you would like to see how they work.