pub struct BarChart { /* private fields */ }
Expand description

A bar chart.

Implementations

Create a bar chart. It defaults to vertically oriented elements.

Set the default color. It is set on all elements that do not already have a specific color. This is the color that shows up in the legend. It can be overridden at the bar level (see [Bar]). Default is Color32::TRANSPARENT which means a color will be auto-assigned.

Name of this chart.

This name will show up in the plot legend, if legends are turned on. Multiple charts may share the same name, in which case they will also share an entry in the legend.

Set all elements to be in a vertical orientation. Argument axis will be X and bar values will be on the Y axis.

Set all elements to be in a horizontal orientation. Argument axis will be Y and bar values will be on the X axis.

Set the width (thickness) of all its elements.

Highlight all plot elements.

Add a custom way to format an element. Can be used to display a set number of decimals or custom labels.

Stacks the bars on top of another chart. Positive values are stacked on top of other positive values. Negative values are stacked below other negative values.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.