create_overlay_style | R Documentation |
When adding an overlay to an existing element in a diagram, it's possible to customize its style.
Refer to the style
parameter in the create_overlay
function for more information.
Use this function to create the correct style structure for an overlay.
create_overlay_style(
font_color = NULL,
font_size = NULL,
fill_color = NULL,
stroke_color = NULL
)
font_color |
The font color of the overlay. It can be any HTML color name or HEX code. |
font_size |
The font size of the overlay. Specify a number in pixels. |
fill_color |
The color of the background of the overlay. It can be any HTML color name or HEX code. |
stroke_color |
The color of the stroke of the overlay. It can be any HTML color name or HEX code.
|
The style object of the overlay
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.