use splot::{Chart, Edge, Page, Plot}; fn main() { let data_a = vec![(13, 74), (111, 37), (125, 52), (190, 66)]; let data_b = vec![(22, 50), (105, 44), (120, 67), (180, 39)]; let page = Page::new().chart( Chart::new() .title("Area Plot") .domain(&data_a[..]) .axis("X Axis", Edge::Bottom) .axis("Y Axis", Edge::Left) .axis("", Edge::Right) .plot(Plot::area("Series A", &data_a)) .plot(Plot::area("Series B", &data_b)), ); print!("{page}"); }