add_bars {SveltePlots} | R Documentation |
Add Bar Series Data to the SveltePlots Chart
Description
This function adds series to a SveltePlot chart, updating the internal data structure. It supports grouped and stacked bar charts with customization of colors and legend entries.
Usage
add_bars(sp, current_data, color_mapping, group_name, include_legend)
Arguments
sp |
A SveltePlot htmlwidget object to which the series will be added. |
current_data |
The current data frame which contains the series. |
color_mapping |
A named list mapping group names to colors. |
group_name |
The names of the series. |
include_legend |
A logical value indicating whether to include the data series in the legend. |
[Package SveltePlots version 0.1.0 Index]