bind_interactive_svg_data: Bind interactive svg data

View source: R/bind_interactive_svg_data.R

bind_interactive_svg_dataR Documentation

Bind interactive svg data

Description

Bind interactive svg data

Usage

bind_interactive_svg_data(
  .,
  data = NULL,
  id = NULL,
  reveal_id = NULL,
  h3 = NULL,
  h4 = NULL,
  content = NULL,
  link = NULL,
  metadata = NULL
)

Arguments

.

The prior Flourish object. No need to specify name if piping graph as the graph will take the first argument (i.e. the prior existing graph).

data

Data.

id

ID. A column of IDs of elements in the uploaded SVG file. Flourish type hint: column

reveal_id

Reveal layer. A column to reveal when layer is clicked. Flourish type hint: column

h3

Heading 1. A column containing the main header. Flourish type hint: column

h4

Heading 2. A column containing a secondary header. Flourish type hint: column

content

Content. A column containing text or HTML to display. Flourish type hint: column

link

Link. A URL that can be opened when a layer is clicked. Any reveal layers or popups will be overridden. Flourish type hint: column

metadata

Info for popups. One or more columns of information (text, image URLs, embedded charts etc) to include in custom popups and panels Flourish type hint: columns

Value

A Flourish chart

Examples

try(
  flourish(chart_type = "interactive_svg", api_key = Sys.getenv("FLOURISH_API_KEY")) |>
  bind_interactive_svg_data(gapminder)
)

flourishcharts documentation built on Oct. 30, 2024, 9:07 a.m.