Skip to main content

Module axis_numbers

Module axis_numbers 

Source
Expand description

How a chart writes its numbers: the format an axis takes from its column, the one notation and precision every tick of an axis shares, a bar’s label and a readout’s value, all through one writer.

Structs§

AxisFormat
How every tick of one numeric axis is written: one notation and one precision for all of them, chosen from the ticks, in the table’s grouping and decimal separator. Chosen per tick, an axis switched to scientific notation partway up.
AxisNumbers
What a numeric axis holds: the table’s format for its numbers, and whether they are whole (counts, an integer column), which ticks the axis only at whole numbers.

Functions§

format_bar_value
Format a bar’s value for the label beside it in format: an integer column’s whole, anything else to the format’s decimal places or two, so every bar shows the same number of them. Values too large, or too small to show in those places, go to scientific notation.
table_number_format
The format the table prints column in, plain where it prints it unformatted.