pub struct ChartData {
pub title: Option<String>,
pub kinds: Vec<String>,
pub category_axis_title: Option<String>,
pub value_axis_title: Option<String>,
pub series: Vec<Series>,
}Expand description
What a chart part says in words and numbers.
Fields§
§title: Option<String>§kinds: Vec<String>The chart type elements found, e.g. barChart, lineChart; extended charts give their layout ids.
category_axis_title: Option<String>§value_axis_title: Option<String>§series: Vec<Series>Implementations§
Source§impl ChartData
impl ChartData
True when every series shares the same category labels.
Sourcepub fn rows(&self) -> Vec<Vec<String>>
pub fn rows(&self) -> Vec<Vec<String>>
Row-major cells of the chart as a table: a header of series names (first cell empty) when any series is named, then one row per category with each series’ value. Series with differing categories fall back to one row per series: name, then its values.
Sourcepub fn write_text(&self, separator: &str, out: &mut String)
pub fn write_text(&self, separator: &str, out: &mut String)
The chart as text: the title, then the table rows with cells separated by separator.
Trait Implementations§
impl Eq for ChartData
impl StructuralPartialEq for ChartData
Auto Trait Implementations§
impl Freeze for ChartData
impl RefUnwindSafe for ChartData
impl Send for ChartData
impl Sync for ChartData
impl Unpin for ChartData
impl UnsafeUnpin for ChartData
impl UnwindSafe for ChartData
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more