fusionTooltip: Adding FusionCharts tooltip

Description Usage Arguments Examples

View source: R/fusionTooltip.R

Description

https://www.fusioncharts.com/dev/chart-guide/chart-configurations/tool-tips

Usage

1
2
3
4
5
6
7
8
fusionTooltip(
  fusionPlot,
  showToolTip = TRUE,
  toolTipBorderColor = "#666666",
  toolTipBgColor = "#ffffff",
  toolTipBgAlpha = "100",
  showToolTipShadow = TRUE
)

Arguments

fusionPlot

fusionPlot object got by fusionPlot()

showToolTip

Display tooltip

toolTipBorderColor

Specify the color of the tooltip border

toolTipBgColor

Specify the hex code for the tooltip background color

toolTipBgAlpha

Set the tooltip background color transparency

showToolTipShadow

Enable tooltip shadow

Examples

1
2
3
4
5
6
library(fusionchartsR)
df <- data.frame(label = c("Venezuela", "Saudi", "Canada", "Russia"), value = c(290, 260,180, 115))
df %>%
fusionPlot(x = "label", y = "value", type = "doughnut2d") %>%
fusionTooltip(toolTipBgColor = "#3526ad", toolTipBgAlpha = "50",  showToolTipShadow = FALSE) %>%
fusionTheme(theme = "fusion")

fusionchartsR documentation built on Dec. 21, 2021, 1:07 a.m.