Skip to main content

Module ticks

Module ticks 

Source

Modules§

x
y

Constants§

MAX_GRID_LINES
Safety cap on the number of grid lines produced by any strategy.
Y_LABEL_DENSITY
Vertical budget per Y-axis label, as a multiple of the text size.

Functions§

x_label_spacing_px
Horizontal pixel spacing reserved per time label at text_size. The single source for x-axis label density (kline + comparison time axes).
x_labels_that_fit
Number of time labels that fit in a width-wide axis at text_size, used as the step-selection budget.
y_labels_that_fit
Number of Y-axis labels that fit in height pixels at text_size for a given density (one label per density text-size units of height).