Skip to content

struct

Series

pub struct Series {
    pub name: String,
    pub values: Vec<Option<f64>>,
    pub status: Vec<Option<String>>,
    pub colors: Vec<Option<String>>,
    pub low: Vec<Option<f64>>,
    pub high: Vec<Option<f64>>,
}

One series of a chart: its name and values, with why any value is missing, per-datum colours and uncertainty where the data gives them.

Fields

name

pub name: String

The series' name, for the legend.

values

pub values: Vec<Option<f64>>

One value per x label; None where it's missing.

status

pub status: Vec<Option<String>>

Why a value is missing (np), or what flag it carries (*).

colors

pub colors: Vec<Option<String>>

One colour per datum, where the data gives them.

low

pub low: Vec<Option<f64>>

How uncertain each value is, where the data says.

high

pub high: Vec<Option<f64>>

The top of each value's uncertainty range, with low as its bottom.

Trait implementations