Struct rustplot::chart_builder::LineChart
[−]
[src]
pub struct LineChart { pub chart_prop: ChartProp, pub axis_prop: AxisProp, // some fields omitted }
Structure used for storing chart related data and the drawing of an Line Chart.
Show trends over time or in categories, highlighting order.
Fields
chart_prop: ChartProp
axis_prop: AxisProp
Methods
impl LineChart
[src]
pub fn new(
chart_title: String,
new_data_labels: Vec<String>,
new_data: Vec<Vec<f64>>
) -> LineChart
[src]
chart_title: String,
new_data_labels: Vec<String>,
new_data: Vec<Vec<f64>>
) -> LineChart
Creates a new instance of a LineChart.
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 the line.
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 LineChart
[src]
fn clone(&self) -> LineChart
[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