8.70

  1. # NVD3 Sparkline with Custom Colors.
  2. library(rCharts)
  3. data(economics, package = 'ggplot2')
  4. p16 <- nPlot(uempmed ~ date, data = economics,
  5. type = 'sparklinePlus', height = 100, width = 500
  6. )
  7. p16$chart(xTickFormat="#! function(d) {
  8. return d3.time.format('%b %Y')(new Date( d * 86400000 ));
  9. }!#")
  10. p16$chart(color = list("#8BA870"))
  11. p16