Struct rustplot::chart_builder::VerticalBarChart
[−]
[src]
pub struct VerticalBarChart { pub chart_prop: ChartProp, pub axis_prop: AxisProp, // some fields omitted }
Structure used for storing chart related data and the drawing of an Bar Chart.
Compare values across multiple categories.
Fields
chart_prop: ChartProp
axis_prop: AxisProp
Methods
impl VerticalBarChart
[src]
pub fn new(
chart_title: String,
new_data_labels: Vec<String>,
new_data: Vec<Vec<f64>>
) -> VerticalBarChart
[src]
chart_title: String,
new_data_labels: Vec<String>,
new_data: Vec<Vec<f64>>
) -> VerticalBarChart
Creates a new instance of a VerticalBarChart.
chart_title
is the String to specify the name of the chart displayed at the top of the window.
new_data_labels
is the string data placed on the x-axis of the chart, each for a bar (or set of bars).
new_data
is the number data on the y-axis of the chart specifying the position of each bar,
with indexes corresponding to the same index in new_data_labels.
Trait Implementations
impl Clone for VerticalBarChart
[src]
fn clone(&self) -> VerticalBarChart
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more