View source: R/chart_data_styles.R
chart_labels_text | R Documentation |
Specify mappings from levels in the data to displayed text font settings.
chart_labels_text(x, values)
x |
an |
values |
a named list of |
Other Series customization functions:
chart_data_fill()
,
chart_data_line_style()
,
chart_data_line_width()
,
chart_data_size()
,
chart_data_smooth()
,
chart_data_stroke()
,
chart_data_symbol()
library(officer)
fp_text_settings <- list(
serie1 = fp_text(font.size = 7, color = "red"),
serie2 = fp_text(font.size = 0, color = "purple"),
serie3 = fp_text(font.size = 19, color = "wheat")
)
barchart <- ms_barchart(
data = browser_data,
x = "browser", y = "value", group = "serie")
barchart <- chart_data_labels(barchart, show_val = TRUE)
barchart <- chart_labels_text( barchart,
values = fp_text_settings )
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.