This function sets the title properties for SveltePlots charts, including text alignment, color, font size, font weight, and padding.
sp_title(
sp,
title = NULL,
text_align = "left",
color = "black",
font_size = 16,
font_weight = "bold",
custom_css = ""
)
An object of class htmlwidget
representing the plot with an added title.
The SveltePlots object to modify.
The title text to be displayed.
Text alignment of the title ("left", "center", "right"; default: "left").
Color of the title text (default: "black").
Font size of the title text (default: 16).
Font weight of the title text (default: "bold").
Some custom css for the title.