pub fn create_bar_chart<'a, T>(
grouped_time_log: BTreeMap<impl Into<Option<&'a T>>, Vec<&'a TimeLog>>,
title: &str,
x_axis_label: &str,
render: &mut RenderOptions<'_>,
) -> Result<(), ChartSettingError>where
T: Display + 'a,Expand description
Create a bar chart.
§Parameters
grouped_time_log: A map of keys (e.g., User or Milestone) to a list of time logstitle: The title for the chartx_axis_label: The text set for the X-axisrender: 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.