ramnathv / rCharts

Interactive JS Charts from R
http://rcharts.io
Other
1.19k stars 654 forks source link

RCharts multicharts disable MinMax value #575

Open tswenzel opened 9 years ago

tswenzel commented 9 years ago

I'm using Rcharts multicharts as below and am trying to hide the minmax value on the y axis. I have done this before using p12$yAxis(showMaxMin = FALSE) but the graph does not display anymore if i use it here. I suspect it needs to be in the "set(multi = list(...." format. Any help much appreciated! Thank you!

library(rCharts)
library(ggplot2)
data(economics, package = 'ggplot2')
ecm <- reshape2::melt(economics[,c('date','uempmed','psavert')],id = 'date')
p12<- nPlot(value ~ date, group = 'variable', data = ecm, type = 'multiChart')
p12$setTemplate(script = system.file("/libraries/nvd3/layouts/multiChart.html",package =     "rCharts"))
p12$set(multi = list( uempmed = list(type="area", yAxis=1), psavert = list(type="line", yAxis=2)))
ramnathv commented 9 years ago

This might be a limitation of the current implementation in rCharts.