Skip to main content

Module chart

Module chart 

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

ChartData
What a chart draws, aggregated from the rows.
ChartDrawing
What a chart draws.
ChartLabel
Text a chart prints.
ChartOptions
The look of a chart.
ChartStyle
More about the look of a chart, for draw_styled.
SeriesData
One series’ numbers, one per category.

Enums§

ChartKind
The kind of a chart.
LabelAlign
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 default ChartStyle.
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.