v_specs | R Documentation |
vchart()
.Specify configuration options for a vchart()
.
v_specs(vc, ..., serie_id = NULL, drop_nulls = FALSE)
vc |
An htmlwidget created with |
... |
List of options to specify for the chart, see https://www.visactor.io/vchart/option/. |
serie_id |
Used to set or modify options for a chart where there are multiple series. You can use :
|
drop_nulls |
Drop NULL elements from the options. |
A vchart()
htmlwidget
object.
library(vchartr)
data("mpg", package = "ggplot2")
vchart(table(Class = mpg$class)) %>%
v_bar(aes(Class, Freq)) %>%
v_specs(
label = list(visible = TRUE),
color = list("firebrick")
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.