Scale Layout
The scale layout controls the placement of labels and ticks on the scale. It does not control how data is mapped to screen coordinates, which is instead controlled by a separate Scale Type option or how labels are formatted, which is controlled by the Formatters option.
List of <scale-layout>
values
linear
The linear
layout will place a 'tick' every N
units. The first tick will be
placed at the min
value of the scale.
linear(<N>)
Example: charts-reference/scale_layout_linear
:
linear-align
The linear
layout will place a 'tick' every N
units. The ticks will be placed
so that the modulo of N and the value at each tick will be zero.
linear-align(<N>)
Example: charts-reference/scale_layout_linear_align
:
linear-alignat
The linear
layout will place a 'tick' every N
units. The ticks will be placed
so that one tick the A
value has an exactly matching tick/label.
linear-alignat(<N> <A>)
Example: charts-reference/scale_layout_linear_alignat
:
linear-interval
The linear
layout will place a 'tick' every N
units. The ticks will be placed
starting at B
through to E
.
linear-interval(<N> <B> <E>)
Example: charts-reference/scale_layout_linear_interval
:
exponential
The exponential
layout will place a 'tick' every B^I
units.
exponential(<B>)
Example: charts-reference/scale_layout_exponential
:
exponential-steps
The exponential-steps
layout will go up in B^I
exponential steps like the
exponential
layout, but will subdivide each "step" linearly into N
sub-steps.
exponential-steps(<B> <N>)
Example: charts-reference/scale_layout_exponential_steps
:
subdivide
The subdivide
layout will divide the axis into N evenly sized divisions.
subdivide
subdivide(<N>)
Example: charts-reference/scale_layout_subdivide
:
categorical
The categorical
layout is used to place labels or ticks for categorical
scales.
categorical
Example: charts-reference/scale_layout_categorical
:
categorical-bounds
The categorical-bounds
layout is used to place ticks at the boundaries between
categories.
categorical-bounds