Expand description
Pure chart value mapping and series helpers.
§Examples
use ailloli_ui_core::chart::ChartRange;
assert_eq!(ChartRange::new(0.0, 10.0).fraction_for_value(5.0), 0.5);Backend-neutral chart domains, points, and automatic range calculation.
Structs§
- Chart
Point - One point in a chart’s logical data coordinate space.
- Chart
Range - A numeric domain used to map chart values.
- Chart
Series - A named, ordered sequence of chart points.
Functions§
- auto_
x_ range - Computes a finite horizontal domain across all supplied series.
- auto_
y_ range - Computes a finite vertical domain across all supplied series.