Replies: 1 comment
-
Hello! As such, Vico’s charts are based on a standard Cartesian coordinate plane. However, you can normalize the x values and use val xValues = listOf(20f, 21f, 40f)
val yValues = listOf(1f, 3f, 5f)
val chartEntryModel = entryModelOf(yValues.mapIndexed { index, yValue -> entryOf(index, yValue) })
val horizontalAxisValueFormatter = AxisValueFormatter<AxisPosition.Horizontal> { value, _ ->
String.format("%.0f", xValues[value.toInt()])
} |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I would like to know if it's possible to display only the values of x-axis and not display the intermediate ones.
For example , I have this :
On my chart, on my X-axis, I would like to have only 20, 21 and 40, and not display 22..39 (cause there is no time relation between x-axis values).
Thank you
Beta Was this translation helpful? Give feedback.
All reactions