charts 0.3.0

A pure Rust visualization library inspired by D3.js
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use svg::node::element::Group;

pub(crate) mod bar;
pub(crate) mod axis;
pub(crate) mod scatter;
pub(crate) mod line;
pub(crate) mod legend;
pub(crate) mod area;

/// A trait that defines behavior of chart components.
pub trait DatumRepresentation {
    fn to_svg(&self) -> Result<Group, String>;
}