Type Definition charts::point::PolyPoints
source · [−]Expand description
A list of points.
Trait Implementations
sourceimpl<X, Y> ChartRender<X, Y> for PolyPoints<X, Y> where
X: CoordExt,
Y: CoordExt,
Self: RangesExt<X, Y> + PointValExt<X> + PointValExt<Y>,
impl<X, Y> ChartRender<X, Y> for PolyPoints<X, Y> where
X: CoordExt,
Y: CoordExt,
Self: RangesExt<X, Y> + PointValExt<X> + PointValExt<Y>,
sourcefn ranges_processor(ranges: Ranges<Option<X>, Option<Y>>) -> Res<Ranges<X, Y>>
fn ranges_processor(ranges: Ranges<Option<X>, Option<Y>>) -> Res<Ranges<X, Y>>
Processes the ranges for both axis.
sourcefn coord_ranges_processor(
ranges: &Ranges<X, Y>
) -> Res<Ranges<X::Coord, Y::Coord>>
fn coord_ranges_processor(
ranges: &Ranges<X, Y>
) -> Res<Ranges<X::Coord, Y::Coord>>
Turns point-value ranges into coordinate ranges.
sourcefn x_coord_processor(x_range: &Range<X>, x: &X) -> X::Coord
fn x_coord_processor(x_range: &Range<X>, x: &X) -> X::Coord
Processes a x-axis point value to yield a x-axis coordinate.
sourcefn y_coord_processor(y_range: &Range<Y>, y: &Y) -> Y::Coord
fn y_coord_processor(y_range: &Range<Y>, y: &Y) -> Y::Coord
Processes a y-axis point value to yield a y-axis coordinate.
sourcefn x_label_formatter(val: &X::Coord) -> String
fn x_label_formatter(val: &X::Coord) -> String
X-axis label formatter.
sourcefn y_label_formatter(val: &Y::Coord) -> String
fn y_label_formatter(val: &Y::Coord) -> String
Y-axis label formatter.
sourcefn render<'spec, DB>(
&self,
settings: &Chart,
chart_builder: ChartBuilder<'_, '_, DB>,
style_conf: &impl StyleExt,
is_active: impl Fn(Line) -> bool,
active_filters: impl Iterator<Item = &'spec FilterSpec> + Clone
) -> Res<()> where
DB: DrawingBackend,
X: Display,
Y::Coord: RatioExt + Add<Output = Y::Coord> + Sub<Output = Y::Coord> + Clone + Display + PartialOrd + Ord + PartialEq,
fn render<'spec, DB>(
&self,
settings: &Chart,
chart_builder: ChartBuilder<'_, '_, DB>,
style_conf: &impl StyleExt,
is_active: impl Fn(Line) -> bool,
active_filters: impl Iterator<Item = &'spec FilterSpec> + Clone
) -> Res<()> where
DB: DrawingBackend,
X: Display,
Y::Coord: RatioExt + Add<Output = Y::Coord> + Sub<Output = Y::Coord> + Clone + Display + PartialOrd + Ord + PartialEq,
Renders some points on a graph.
sourcefn chart_render<'spec, DB>(
&self,
_settings: &Chart,
chart_builder: ChartBuilder<'_, '_, DB>,
style_conf: &impl StyleExt,
is_active: impl Fn(Line) -> bool,
active_filters: impl Iterator<Item = &'spec FilterSpec>
) -> Res<()> where
DB: DrawingBackend,
fn chart_render<'spec, DB>(
&self,
_settings: &Chart,
chart_builder: ChartBuilder<'_, '_, DB>,
style_conf: &impl StyleExt,
is_active: impl Fn(Line) -> bool,
active_filters: impl Iterator<Item = &'spec FilterSpec>
) -> Res<()> where
DB: DrawingBackend,
Normal display mode rendering.
sourcefn chart_render_stacked_area<'spec, DB>(
&self,
settings: &Chart,
chart_builder: ChartBuilder<'_, '_, DB>,
style_conf: &impl StyleExt,
is_active: impl Fn(Line) -> bool,
active_filters: impl Iterator<Item = &'spec FilterSpec> + Clone
) -> Res<()> where
DB: DrawingBackend,
X: Display,
Y::Coord: RatioExt + Add<Output = Y::Coord> + Sub<Output = Y::Coord> + Clone + Display + PartialOrd + Ord + PartialEq,
fn chart_render_stacked_area<'spec, DB>(
&self,
settings: &Chart,
chart_builder: ChartBuilder<'_, '_, DB>,
style_conf: &impl StyleExt,
is_active: impl Fn(Line) -> bool,
active_filters: impl Iterator<Item = &'spec FilterSpec> + Clone
) -> Res<()> where
DB: DrawingBackend,
X: Display,
Y::Coord: RatioExt + Add<Output = Y::Coord> + Sub<Output = Y::Coord> + Clone + Display + PartialOrd + Ord + PartialEq,
Stacked area rendering.
sourcefn chart_render_stacked_area_percent<'spec, DB>(
&self,
settings: &Chart,
chart_builder: ChartBuilder<'_, '_, DB>,
style_conf: &impl StyleExt,
is_active: impl Fn(Line) -> bool,
active_filters: impl Iterator<Item = &'spec FilterSpec> + Clone
) -> Res<()> where
DB: DrawingBackend,
X: Display,
Y::Coord: RatioExt + Add<Output = Y::Coord> + Sub<Output = Y::Coord> + Clone + Display + PartialOrd + Ord + PartialEq,
fn chart_render_stacked_area_percent<'spec, DB>(
&self,
settings: &Chart,
chart_builder: ChartBuilder<'_, '_, DB>,
style_conf: &impl StyleExt,
is_active: impl Fn(Line) -> bool,
active_filters: impl Iterator<Item = &'spec FilterSpec> + Clone
) -> Res<()> where
DB: DrawingBackend,
X: Display,
Y::Coord: RatioExt + Add<Output = Y::Coord> + Sub<Output = Y::Coord> + Clone + Display + PartialOrd + Ord + PartialEq,
Percent stacked area rendering.
sourcefn chart_render_stacked_area_custom<'spec, DB, RealY: CoordExt>(
&self,
_settings: &Chart,
chart_builder: ChartBuilder<'_, '_, DB>,
style_conf: &impl StyleExt,
is_active: impl Fn(Line) -> bool,
active_filters: impl Iterator<Item = &'spec FilterSpec> + Clone,
zero: impl Fn() -> RealY::Coord,
compute_from_val_and_max: impl Fn(Y::Coord, &Y::Coord) -> RealY::Coord,
range_do: impl Fn(Y::Coord, Y::Coord) -> RealY::Range,
label_formatter: impl Fn(&RealY::Coord) -> String,
_type_inference_help: fn() -> RealY
) -> Res<()> where
DB: DrawingBackend,
X: Display,
Y::Coord: RatioExt + Add<Output = Y::Coord> + Sub<Output = Y::Coord> + Clone + Display + PartialOrd + Ord + PartialEq,
RealY::Coord: Add<RealY::Coord, Output = RealY::Coord> + Display,
fn chart_render_stacked_area_custom<'spec, DB, RealY: CoordExt>(
&self,
_settings: &Chart,
chart_builder: ChartBuilder<'_, '_, DB>,
style_conf: &impl StyleExt,
is_active: impl Fn(Line) -> bool,
active_filters: impl Iterator<Item = &'spec FilterSpec> + Clone,
zero: impl Fn() -> RealY::Coord,
compute_from_val_and_max: impl Fn(Y::Coord, &Y::Coord) -> RealY::Coord,
range_do: impl Fn(Y::Coord, Y::Coord) -> RealY::Range,
label_formatter: impl Fn(&RealY::Coord) -> String,
_type_inference_help: fn() -> RealY
) -> Res<()> where
DB: DrawingBackend,
X: Display,
Y::Coord: RatioExt + Add<Output = Y::Coord> + Sub<Output = Y::Coord> + Clone + Display + PartialOrd + Ord + PartialEq,
RealY::Coord: Add<RealY::Coord, Output = RealY::Coord> + Display,
Stacked area rendering.
sourceimpl<Y> PointValExt<Date> for PolyPoints<Date, Y>
impl<Y> PointValExt<Date> for PolyPoints<Date, Y>
sourcefn val_range_processor(range: Range<Option<Date>>) -> Res<Range<Date>>
fn val_range_processor(range: Range<Option<Date>>) -> Res<Range<Date>>
Processes a range over optional bounds to yield a range proper.
sourcefn val_coord_range_processor(
range: &Range<Date>
) -> Res<Range<<Date as CoordExt>::Coord>>
fn val_coord_range_processor(
range: &Range<Date>
) -> Res<Range<<Date as CoordExt>::Coord>>
Turns a range over point values into a range over coordinates.
sourceimpl<Y> PointValExt<SinceStart> for PolyPoints<SinceStart, Y>
impl<Y> PointValExt<SinceStart> for PolyPoints<SinceStart, Y>
sourcefn val_range_processor(
range: Range<Option<SinceStart>>
) -> Res<Range<SinceStart>>
fn val_range_processor(
range: Range<Option<SinceStart>>
) -> Res<Range<SinceStart>>
Processes a range over optional bounds to yield a range proper.
sourcefn val_coord_range_processor(
range: &Range<SinceStart>
) -> Res<Range<<SinceStart as CoordExt>::Coord>>
fn val_coord_range_processor(
range: &Range<SinceStart>
) -> Res<Range<<SinceStart as CoordExt>::Coord>>
Turns a range over point values into a range over coordinates.
sourcefn val_coord_processor(
_range: &Range<SinceStart>,
x: &SinceStart
) -> <SinceStart as CoordExt>::Coord
fn val_coord_processor(
_range: &Range<SinceStart>,
x: &SinceStart
) -> <SinceStart as CoordExt>::Coord
Processes a point value to yield a coordinate value.
sourcefn val_label_formatter(date: &<SinceStart as CoordExt>::Coord) -> String
fn val_label_formatter(date: &<SinceStart as CoordExt>::Coord) -> String
Formatter for the axis labels.
sourceimpl<X> PointValExt<Size> for PolyPoints<X, Size>
impl<X> PointValExt<Size> for PolyPoints<X, Size>
sourcefn val_range_processor(range: Range<Option<Size>>) -> Res<Range<Size>>
fn val_range_processor(range: Range<Option<Size>>) -> Res<Range<Size>>
Processes a range over optional bounds to yield a range proper.
sourcefn val_coord_range_processor(
range: &Range<Size>
) -> Res<Range<<Size as CoordExt>::Coord>>
fn val_coord_range_processor(
range: &Range<Size>
) -> Res<Range<<Size as CoordExt>::Coord>>
Turns a range over point values into a range over coordinates.
sourceimpl<X> PointValExt<u64> for PolyPoints<X, u64>
impl<X> PointValExt<u64> for PolyPoints<X, u64>
sourcefn val_range_processor(range: Range<Option<u64>>) -> Res<Range<u64>>
fn val_range_processor(range: Range<Option<u64>>) -> Res<Range<u64>>
Processes a range over optional bounds to yield a range proper.
sourcefn val_coord_range_processor(
range: &Range<u64>
) -> Res<Range<<u64 as CoordExt>::Coord>>
fn val_coord_range_processor(
range: &Range<u64>
) -> Res<Range<<u64 as CoordExt>::Coord>>
Turns a range over point values into a range over coordinates.