Expand description
Chart layout: turns aggregated numbers into shapes and labels. Pure logic, kept apart from the engine so it can be tested without rendering a report.
Structs§
- Chart
Data - What a chart draws, aggregated from the rows.
- Chart
Drawing - What a chart draws.
- Chart
Label - Text a chart prints.
- Chart
Options - The look of a chart.
- Chart
Style - More about the look of a chart, for
draw_styled. - Series
Data - One series’ numbers, one per category.
Enums§
- Chart
Kind - The kind of a chart.
- Label
Align - How a label sits in its box.
Constants§
- PALETTE
- The default series and slice colors.
Functions§
- draw
- Lays a chart out inside
rect, in the defaultChartStyle. - draw_
styled - Lays a chart out inside
rect, in this style. - nice_
ticks - Round numbers for an axis: lower bound, step and how many ticks.