Skip to content

module

charts

Chart layouts: from a Dataset to a Plot.

Functions

bar

pub fn bar(p: &Props, whole: &Dataset, measured: Option<f32>) -> Plot

The BarChart plot of whole for props p, measured pixels wide when the browser has measured it.

donut

pub fn donut(p: &Props, data: &Dataset, _: Option<f32>) -> Plot

The DonutChart plot of data for props p.

line

pub fn line(p: &Props, data: &Dataset, measured: Option<f32>) -> Plot

The LineChart plot of data for props p, measured pixels wide when the browser has measured it.

sparkline

pub fn sparkline(p: &Props, data: &Dataset, _: Option<f32>) -> Plot

The Sparkline plot of data for props p.