1. library(rCharts)
  2. h1 <- hPlot(Pulse ~ Height, data = MASS::survey, type = "scatter", group = "Exer")
  3. h1$set(tooltip = list(formatter =
  4. "#! function(){
  5. return '<b>X</b>:' + this.x + '<br/>' +
  6. '<b>Y</b>:' + this.y
  7. } !#"
  8. ))
  9. h1