Skip to main content

barplot_add

Function barplot_add 

Source
pub fn barplot_add<L: ToString, V: ToString>(
    plot: &mut Plot<BarplotGraphics>,
    labels: &[L],
    values: &[V],
) -> Result<(), BarplotError>
Expand description

Appends rows to an existing bar plot.

ยงErrors

Returns BarplotError::LengthMismatch when input lengths differ, BarplotError::EmptyAppend when no rows are provided, BarplotError::NegativeValuesUnsupported when a value is negative, and BarplotError::InvalidNumericValue if a value cannot be parsed as f64.