I 've seen as many tutorials or blogs as I could find about rCharts and there is no example of rPlot
being used with a bar
type anywhere with a data set similar to yours (there is only one here but it is being used as a histogram with binned variables and counts which is not the same).
The rPlot
function works fine if you change the bar
type to line
, which makes me think that you cannot use rPlot
in this case.
#this works
p1 <- rPlot(x='Date', y='Amount', data = rawData, type = 'line')
p1
It seems to me that if you want to plot a barchart the best thing is to use the vPlot
(or hPlot
for a horizontal bar) function which works fine:
p1 <- vPlot(x='Date', y='Amount', data = rawData, type = 'bar')
p1

And actually as per @Shiva 's message below you can also do (type = 'column' will print it vertically):
hPlot(x='Date', y='Amount', data = rawData, type = 'column')
Which actually looks even better:
