output$plot3 <- renderChart2({
dat <- candyData[candyData$candyChoice %in% input$candyChoice, ]
if(!is.na(dat)){
n <- nPlot(freq ~ purchase_month, group = 'candy choice', data=dat, type = "lineChart")
}
})
My dates, when printed in my console, are shown like this:
"2014-04-01" "2014-05-01" "2014-06-01" "2014-07-01" "2014-08-01" "2014-09-01" "2014-10-01"
"2014-11-01" "2014-12-01" "2015-01-01" "2015-02-01" "2015-03-01" "2015-04-01" "2015-05-01"
"2015-06-01" "2015-07-01" "2015-08-01"
My dates on the plot are showing up like this:
Any suggestions on how to fix this would be warmly welcomed!
Update 2
The graph lines don't match up with the nPlot interactive tooltip. Do you know how to fix this?