Companion
Houses ItemPlacer factory functions.
Functions
Adds a label, tick, and guideline for each x value given by CartesianChartRanges.minX + (k × spacing + offset) × CartesianChartRanges.xStep, where k ∈ ℕ, with these components being horizontally centered relative to one another. shiftExtremeLines is used as the return value of ItemPlacer.getShiftExtremeLines. addExtremeLabelPadding specifies whether CartesianLayer padding should be added for the first and last labels, ensuring their visibility.
Adds a label for each major x value, and adds ticks between the labels and for CartesianChartRanges.minX − CartesianChartRanges.xStep ÷ 2 and CartesianChartRanges.maxX + CartesianChartRanges.xStep ÷ 2. (Major x values are given by CartesianChartRanges.minX + k × CartesianChartRanges.xStep, where k ∈ ℕ.) shiftExtremeLines is used as the return value of ItemPlacer.getShiftExtremeLines.