pub trait CategoricalRepresentation {
// Required methods
fn range(&self) -> (f64, f64);
fn ticks(&self) -> Vec<String>;
fn to_svg(
&self,
x_axis: &CategoricalAxis,
y_axis: &ContinuousAxis,
face_width: f64,
face_height: f64,
) -> Group;
fn to_text(
&self,
x_axis: &CategoricalAxis,
y_axis: &ContinuousAxis,
face_width: u32,
face_height: u32,
) -> String;
}
Expand description
A representation of data that is categorical in the x-axis but continuous in the y-axis.
Required Methods§
Sourcefn ticks(&self) -> Vec<String>
fn ticks(&self) -> Vec<String>
The ticks that this representation covers. Used to collect all ticks for display.