Open
Description
Example
The first label of the Y-axis is not shown when VerticalLabelPosition.Top and HorizontalLabelPosition.Inside.
How to reproduce
I directly added the code from the asterisked section into the link below.
https://github.com/patrykandpatrick/vico/blob/master/sample/compose/src/main/kotlin/com/patrykandpatrick/vico/sample/compose/BasicLineChart.kt#L44
@Composable
private fun JetpackComposeBasicLineChart(
modelProducer: CartesianChartModelProducer,
modifier: Modifier = Modifier,
) {
CartesianChartHost(
chart =
rememberCartesianChart(
rememberLineCartesianLayer(),
startAxis = VerticalAxis.rememberStart(
horizontalLabelPosition = VerticalAxis.HorizontalLabelPosition.Inside, ★★★
verticalLabelPosition = Position.Vertical.Top, ★★★
),
bottomAxis = HorizontalAxis.rememberBottom(),
),
modelProducer = modelProducer,
modifier = modifier,
)
}
Observed behavior
The first label of the Y-axis is not shown when the label position is set to Inside.
Outside | Inside |
---|---|
![]() |
![]() |
Expected behavior
The first label of the Y-axis is shown when the label position is set to Inside.
Module(s)
compose-m3
Platform(s)
Android
Platform version(s)
8
Vico version(s)
2.1.2
Additional information
No response