Replies: 1 comment 3 replies
-
Hello, @daniel-eh. If the tick logic is entirely static like this, then you may get random values along the x-axis. Let's take 4 ticks. For 100 values, it works fine: 20, 40, 60, 80. However, if you had 93 values, you'd get 18.6, 32.7, 55.8, and 74.4. Is that desired? |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Question
Hello.
I'm looking to place ticks equidistant-ish from each other on the axis. So for a simple example, if I have 100 x values, I want to plot them all but I only want a tick on the x-axis at every 20 (20, 40, 60, 80). I don't necessarily know how many data points I'll get, so I'd like to be able to essentially just pass an argument for how many ticks go in the axis, evenly spread. There's a picture attached to sort of demonstrate this.
I suspect I'm supposed to achieve this via
xStep
but I've been struggling to get it to work/look the way I need it to.Thanks for any help!
Vico version(s)
2.0.0-beta.3
UI framework(s)
Jetpack Compose
Beta Was this translation helpful? Give feedback.
All reactions