tooltip_table: Helper for make table in tooltips

Description Usage Arguments Examples

View source: R/helpers.R

Description

Helper to make table in tooltips for the pointFormat parameter in hc_tooltip

Usage

1
tooltip_table(x, y, title = NULL, img = NULL, ...)

Arguments

x

A string vector with description text

y

A string with accesors ex: point.series.name, point.x

title

A title tag with accessor or string

img

Img tag

...

html attributes for the table element

Examples

1
2
3
4
5
x <- c("Income:", "Genre", "Runtime")
y <- c("$ {point.y}", "{point.series.options.extra.genre}",
       "{point.series.options.extra.runtime}")

tooltip_table(x, y)

highcharter documentation built on May 30, 2017, 1:47 a.m.

Search within the highcharter package
Search all R packages, documentation and source code