You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
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