Struct rustplot::chart_builder::BubbleChart
[−]
[src]
pub struct BubbleChart { pub chart_prop: ChartProp, pub axis_prop: AxisProp, // some fields omitted }
Structure used for storing chart related data and the drawing of a Bubble Chart.
Shows the relationship between sets of values, comparing at least 3 sets of data.
Fields
chart_prop: ChartProp
axis_prop: AxisProp
Methods
impl BubbleChart
[src]
pub fn new(
chart_title: String,
new_data_x: Vec<Vec<f64>>,
new_data_y: Vec<Vec<f64>>,
new_data_magnitude: Vec<Vec<f64>>
) -> BubbleChart
[src]
chart_title: String,
new_data_x: Vec<Vec<f64>>,
new_data_y: Vec<Vec<f64>>,
new_data_magnitude: Vec<Vec<f64>>
) -> BubbleChart
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 bubbles.
new_data_y
is the number data placed on the y-axis of the chart, specifying vertical positions of bubbles, with indexes corresponding to the same index in new_data_x.
new_data_magnitude
is the number data used to scale size of bubble proportionally, where indexes correspond to the same index in new_data_x and new_data_y.
Trait Implementations
impl Clone for BubbleChart
[src]
fn clone(&self) -> BubbleChart
[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