Struct flot::Axis
[−]
[src]
pub struct Axis<'a> { /* fields omitted */ }
represents an axis
Methods
impl<'a> Axis<'a>
[src]
fn set_option(&mut self, key: &str, val: JsonValue) -> &mut Self
[src]
fn transform(&mut self, expr_or_fun: &str) -> &mut Self
[src]
conversion function to apply to axis values.
Either a Javascript expression in v
or the full function.
fn label_formatter(&mut self, fun: &str) -> &mut Self
[src]
fn label_post(&mut self, s: &str) -> &mut Self
[src]
append a string to the default label
fn label_pre(&mut self, s: &str) -> &mut Self
[src]
prepend a string to the default label
fn min(&mut self, min: f64) -> &mut Self
[src]
force minimum value on axis
fn max(&mut self, max: f64) -> &mut Self
[src]
force maximum value on axis
fn position(&mut self, side: Side) -> &mut Self
[src]
set the position of an axis
fn time(&mut self) -> &mut Self
[src]
indicates that this axis uses time values. These must be specified in milliseconds
fn tick_values(&mut self, vv: &[f64]) -> &mut Self
[src]
explicitly provide tick values.
fn tick_values_and_labels(&mut self, vv: &[(f64, &str)]) -> &mut Self
[src]
explicitly provide tick values and labels.