Grid property for a Billboard.js chart
Grid property for a Billboard.js chart
bb_grid(bb, ...) bb_x_grid(bb, ...) bb_y_grid(bb, ...)
bb |
A |
... |
See https://naver.github.io/billboard.js/release/latest/doc/Options.html#.grid |
A billboard
htmlwidget
object.
bb_x_grid
and bb_y_grid
are shortcut for modifying the x-axis and the y-axis respectively.
stars <- data.frame( package = c("billboarder", "ggiraph", "officer", "shinyWidgets", "visNetwork"), stars = c(1, 176, 42, 40, 166) ) billboarder() %>% bb_barchart(data = stars) %>% bb_y_grid(show = TRUE) billboarder() %>% bb_barchart(data = stars) %>% bb_y_grid(lines = list(list(value = mean(stars$stars), text = "Horizontal line")))
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.