Initializes a list of default configuration settings for SveltePlot charts for internal use. It sets up parameters related to chart dimensions, appearance, axis properties, and more, to prepare for rendering. This function is not intended for direct use by API consumers.
create_configurations(
id = "",
data = NULL,
header = "",
height = 500,
show_legend = TRUE,
xaxis_ticks = 6,
dx = "0em",
dy = "0em",
rotation_xaxis = 0,
font_size_xaxis = 14,
font_size_xticks = 12,
scale_x = "linear",
dominant_baseline_x_axis = "middle",
text_anchor_x_axis = "middle",
x_axis_type = NULL,
x_label = NULL,
format_xaxis = NULL,
format_yaxis = ",.3r",
yaxis_ticks = 6,
font_size_yaxis = 14,
font_size_yticks = 12,
format_tooltip = ".2~f",
y_label = NULL,
tooltip = NULL,
interval = NULL,
time_interval = NULL,
colors = c("#1F77B4", "#FF7F0E", "#2CA02C", "#D62728", "#9467BD", "#8C564B", "#E377C2",
"#7F7F7F", "#BCBD22", "#17BECF")
)
A list of configurations for a SveltePlot chart.
Unique identifier for the chart.
Data frame containing the data to be plotted.
Chart title or header text.
Height of the chart in pixels.
Logical; if TRUE, displays the chart legend.
Suggested number of ticks on the x-axis.
Horizontal shift for the x-axis labels, typically in em units.
Vertical shift for the x-axis labels, typically in em units.
Rotation angle for x-axis tick labels, in degrees.
Font size for the x-axis label.
Font size for the x-axis tick labels.
Scale type for the x-axis ("linear" or "log").
Dominant baseline for x-axis labels.
Text anchor point for x-axis labels.
Type of x-axis, if applicable (e.g., "date").
Label for the x-axis.
Format string for x-axis labels, following D3 format specifications.
Format string for y-axis labels, following D3 format specifications.
Suggested number of ticks on the y-axis.
Font size for the y-axis label.
Font size for the y-axis tick labels.
Tooltip format string, following D3 format specifications.
Label for the y-axis.
Configuration for tooltips, if specified.
Numeric; interval for the plotting, if applicable.
Time interval for the x-axis, if using time series data.
Vector of colors to use for the chart elements.
if (FALSE) {
# This function is typically used internally within the SveltePlots package
# and not intended for direct use in scripts or applications.
}
Run the code above in your browser using DataLab