ScaleTime

Trait ScaleTime 

Source
pub trait ScaleTime {
    // Required methods
    fn domain(&self) -> (NaiveDateTime, NaiveDateTime);
    fn domain_unix(&self) -> (f64, f64);
    fn scale(&self, value: NaiveDateTime) -> f64;
    fn gen_axes(&self) -> Axes;
    fn to_stick(&self) -> Vec<Stick>;
}
Expand description

This trait allows to create a time axes for the chart

Required Methods§

Source

fn domain(&self) -> (NaiveDateTime, NaiveDateTime)

Source

fn domain_unix(&self) -> (f64, f64)

Source

fn scale(&self, value: NaiveDateTime) -> f64

Source

fn gen_axes(&self) -> Axes

Source

fn to_stick(&self) -> Vec<Stick>

Implementors§