Struct simple_chart::chart::Chart
[−]
[src]
pub struct Chart { /* fields omitted */ }
Methods
impl Chart
[src]
fn new(
width: usize,
height: usize,
background_color: &str,
axis_color: &str
) -> Result<Self, GraphError>
width: usize,
height: usize,
background_color: &str,
axis_color: &str
) -> Result<Self, GraphError>
fn add_axis_x(self, axis_x: Axis) -> Chart
fn add_axis_y(self, axis_y: Axis) -> Chart
fn draw<S, T, P>(&mut self, series: S) -> Vec<u8> where
S: Iterator<Item = Serie<T, P>> + Clone,
T: IterInPoint<P>,
P: InPoint,
S: Iterator<Item = Serie<T, P>> + Clone,
T: IterInPoint<P>,
P: InPoint,