Skip to main content

Module axes

Module axes 

Source

Structs§

AxisLayout
Generates tick positions and formatted labels for a continuous axis.
CategoryTickMark
A single tick mark for band/category axes.
TickMark
A single tick mark with its position and label.

Enums§

AxisPosition
Position of the axis relative to the chart area.

Functions§

adaptive_tick_count
Calculate the optimal number of ticks based on available axis length in pixels. Formula: floor(axis_length / 50), clamped to 3..=10 For very small charts (< ~150px), allows as few as 3 ticks to avoid crowding.