Skip to main content

axis_gutter

Function axis_gutter 

Source
pub fn axis_gutter(font_size: Pixels) -> f32
Expand description

The space below (or above) an x-axis line that tick labels of font_size need: the gap PlotAxis leaves between the line and the labels, the labels themselves, and a trailing gap.

A chart reserves this much of its height for the axis. With the default TEXT_SIZE it is 18px; a styled layer drawing larger labels passes its own size so the plot shrinks to fit them.