Struct rustplot::chart_builder::XYScatterPlot
[−]
[src]
pub struct XYScatterPlot { pub chart_prop: ChartProp, pub axis_prop: AxisProp, // some fields omitted }
Structure used for storing chart related data and the drawing of an XY Scatter Plot.
Shows the relationship between sets of values, comparing at least 2 sets of data.
Fields
chart_prop: ChartProp
axis_prop: AxisProp
Methods
impl XYScatterPlot
[src]
pub fn new(
chart_title: String,
new_data_x: Vec<Vec<f64>>,
new_data_y: Vec<Vec<f64>>
) -> XYScatterPlot
[src]
chart_title: String,
new_data_x: Vec<Vec<f64>>,
new_data_y: Vec<Vec<f64>>
) -> XYScatterPlot
Creates a new instance of a BubbleChart.
chart_title
is the String to specify the name of the chart displayed at the top of the window.
new_data_x
is the number data placed on the x-axis of the chart, specifying horizontal positions of marks.
new_data_y
is the number data placed on the y-axis of the chart, specifying vertical positions of marks, with indexes corresponding to the same index in new_data_x.
pub fn set_best_fit_line(&mut self, best_fit_line: bool)
[src]
Set if line of best fit should be shown.
best_fit_line
is a boolean value that should be set to true to show the line of best fit.
Trait Implementations
impl Clone for XYScatterPlot
[src]
fn clone(&self) -> XYScatterPlot
[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