Module chart

Source
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§

ChartPoint
One point in a chart’s logical data coordinate space.
ChartRange
A numeric domain used to map chart values.
ChartSeries
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.