pub fn create_grouped_bar_chart<'a, Outer, Inner>(
grouped_time_log: BTreeMap<impl Into<Option<&'a Outer>>, BTreeMap<impl Into<Option<&'a Inner>> + Clone, Vec<&'a TimeLog>>>,
title: &str,
x_axis_label_rotate: f64,
render: &mut RenderOptions<'_>,
) -> Result<(), ChartSettingError>Expand description
Create a grouped bar chart, i.e., Hours per Label per User.
§Parameters
grouped_time_log: A map ofOuterkeys (e.g., Label) to a map ofInnerkeys (e.g., User) to value (Duration)title: The title of the chartx_axis_label_rotate: The rotation of the X-axis labels.render: Options for the rendering of the chart.
§Errors
- Returns
ChartSettingError::CharmingErrorif the creation of the chart failed. - Returns
ChartSettingError::FileNotFoundif the theme file inRenderOptionsdoes not exist. - Returns
ChartSettingError::IoErrorif there was an error reading or writing from/to the filesystem.