Struct rustplot::chart_builder::DoughnutChart
[−]
[src]
pub struct DoughnutChart { pub chart_prop: ChartProp, // some fields omitted }
Structure used for storing chart related data and the drawing of an Doughnut Chart.
Show proportions of a whole for multiple sets of data. Can be used when total of numbers in 100%.
Fields
chart_prop: ChartProp
Methods
impl DoughnutChart
[src]
pub fn new(chart_title: String, new_data: Vec<Vec<f64>>) -> DoughnutChart
[src]
Creates a new instance of a DoughnutChart.
chart_title
is the String to specify the name of the chart displayed at the top of the window.
new_data
is the number data for which is represented in the chart.
Each inner vector is a new ring in the doughnut chart.represnents a proportion within the whole data is calculated.
Each value within an inner vector a proportion of the whole data (within its inner vector) is calculated.
Trait Implementations
impl Clone for DoughnutChart
[src]
fn clone(&self) -> DoughnutChart
[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