Expand description
Chart intermediate representation.
This is the one contract that adapters, renderers (SVG, canvas, ratatui), and the JSON wire format all share. Serialises cleanly so the WASM canvas renderer can consume the same bytes the server produces.
Structs§
- Chart
Spec - A chart the server has already prepared. Renderers read this directly; none of them compute totals, pick top-N, or negate signs. All of that lives in the adapters.
- Series
- Series
Point - One x/y datum.
yis carried as anum/denompair so the exact Rational64 crosses the wire without float drift; each renderer converts tof64for display.