Companion

object Companion

Functions

Link copied to clipboard
fun default(maxItemCount: Int = DEF_LABEL_COUNT, shiftTopLines: Boolean = true): AxisItemPlacer.Vertical

Creates a base AxisItemPlacer.Vertical implementation. maxItemCount is the maximum number of labels (and their corresponding line pairs) to be displayed. The actual item count is the greatest number smaller than or equal to maxItemCount for which no overlaps occur. shiftTopLines defines whether to shift the lines whose y values are equal to ChartValues.maxY, if such lines are present, such that they’re immediately above the Chart’s bounds. If the chart has a top axis, the shifted tick will then be aligned with this axis, and the shifted guideline will be hidden.