Learn R Programming

billboarder (version 0.5.2)

bb_interaction: Interaction property for a Billboard.js chart

Description

Interaction property for a Billboard.js chart

Usage

bb_interaction(bb, ...)

Value

A `billboard` `htmlwidget` object.

Arguments

bb

A `billboard` `htmlwidget` object.

...

See <https://naver.github.io/billboard.js/release/latest/doc/Options.html#.interaction>

Examples

Run this code
# Disable interactions
billboarder() %>%
  bb_linechart(data = c(1, 3, 2, 5, 4)) %>%
  bb_interaction(enabled = FALSE)

# Only mouse input
billboarder() %>%
  bb_linechart(data = c(1, 3, 2, 5, 4)) %>%
  bb_interaction(inputType = list(touch = FALSE))

Run the code above in your browser using DataLab