Struct rustplot::chart_builder::AreaChart
[−]
[src]
pub struct AreaChart { pub chart_prop: ChartProp, pub axis_prop: AxisProp, // some fields omitted }
Structure used for storing chart related data and the drawing of an Area Chart.
Show trends over time or in categories, highlighting the magnitude of the change.
Fields
chart_prop: ChartProp
axis_prop: AxisProp
Methods
impl AreaChart
[src]
pub fn new(
chart_title: String,
new_data_labels: Vec<String>,
new_data: Vec<Vec<f64>>
) -> AreaChart
[src]
chart_title: String,
new_data_labels: Vec<String>,
new_data: Vec<Vec<f64>>
) -> AreaChart
Creates a new instance of an AreaChart.
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 at a point of an area.
new_data
is the number data on the y-axis of the chart specifying the position of each point,
with indexes corresponding to the same index in new_data_labels.
Trait Implementations
impl Clone for AreaChart
[src]
fn clone(&self) -> AreaChart
[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