ramnathv / rCharts

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

The "Rickshaw" example doesn't work well #441

Open yadandan opened 10 years ago

yadandan commented 10 years ago

Hello I tried to execute all the examples of https://github.com/ramnathv/rCharts/blob/master/inst/apps/notebook/www/example.Rmd. Every example works well except for "rickshaw". The legend and axis are mismatched. The code is

usp <- reshape2::melt(USPersonalExpenditure)
names(usp)[1:2] = c('category', 'year')
usp$year <- as.numeric(as.POSIXct(paste0(usp$year,"-01-01")))
p4 <- Rickshaw$new()
p4$layer(value ~ year, group = 'category', data = usp, type = "area")
p4$set(slider = TRUE)
p4$print('chart6', include_assets = TRUE)

Is there anything wrong?

yadandan commented 10 years ago

screenshot_2014-06-12_145016

ramnathv commented 9 years ago

This works for me. What browser are you using?