bottomAxis
Deprecated
Use `rememberBottomAxis` instead.
Replace with
import com.patrykandpatrick.vico.compose.axis.horizontal.rememberBottomAxis
rememberBottomAxis(
label = label,
axis = axis,
tick = tick,
tickLength = tickLength,
guideline = guideline,
valueFormatter = valueFormatter,
sizeConstraint = sizeConstraint,
titleComponent = titleComponent,
title = title,
labelRotationDegrees = labelRotationDegrees,
itemPlacer = itemPlacer,
)
Creates and remembers a bottom axis (i.e., a HorizontalAxis with AxisPosition.Horizontal.Bottom).
Parameters
the TextComponent to use for the labels.
the LineComponent to use for the axis line.
the LineComponent to use for the ticks.
the length of the ticks.
the LineComponent to use for the guidelines.
formats the labels.
defines how the HorizontalAxis is to size itself.
an optional TextComponent to use as the axis title.
the axis title.
the rotation of the axis labels (in degrees).
determines for what x values the HorizontalAxis is to display labels, ticks, and guidelines.
Deprecated
`bottomAxis` is being replaced by `rememberBottomAxis`. Also, `labelSpacing` and `labelOffset` are being replaced by `AxisItemPlacer.Horizontal`. Create a base `AxisItemPlacer.Horizontal` implementation with the desired spacing and offset via `AxisItemPlacer.Horizontal.default`, and use the `itemPlacer` parameter of `rememberBottomAxis` to apply it to the `HorizontalAxis` being created.
Replace with
import androidx.compose.runtime.remember
import com.patrykandpatrick.vico.compose.axis.horizontal.rememberBottomAxis
import com.patrykandpatrick.vico.core.axis.AxisItemPlacer
rememberBottomAxis(
label = label,
axis = axis,
tick = tick,
tickLength = tickLength,
guideline = guideline,
valueFormatter = valueFormatter,
sizeConstraint = sizeConstraint,
titleComponent = titleComponent,
title = title,
labelRotationDegrees = labelRotationDegrees,
itemPlacer = remember {
AxisItemPlacer.Horizontal.default(spacing = labelSpacing, offset = labelOffset)
},
)
Creates and remembers a bottom axis (i.e., a HorizontalAxis with AxisPosition.Horizontal.Bottom).
Parameters
the TextComponent to use for the labels.
the LineComponent to use for the axis line.
the LineComponent to use for the ticks.
the length of the ticks.
the LineComponent to use for the guidelines.
formats the labels.
defines how the HorizontalAxis is to size itself.
an optional TextComponent to use as the axis title.
the axis title.
the rotation of the axis labels (in degrees).
how often labels (and their corresponding ticks and guidelines) should be drawn.
the number of labels (and, for HorizontalLayout.FullWidth, their corresponding ticks and guidelines) to skip from the start.