-
Hi, I'm using unovis in my SvelteKit application because it's the best looking graphing library out there :) I'm trying to format my timeseries data in stacked graphs so I've parsed my data into ticks going from 0 -> x with human readable times being stored in a seperate array to do ordinal labels (case 2 of the guide). This works perfectly for when there's 3 bars on the screen, for example: The problem is that half of the labels vanish when 4 or more items appear: I need these labels because otherwise it looks as if the times in between are exactly halfway, even though this could be completely inaccurate. How should I go about enabling labels for every stacked bar? Here's the code I'm running to get these results: |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Hi @Owez, thanks for choosing Unovis! You can specify the exact tick values for |
Beta Was this translation helpful? Give feedback.
Hi @Owez, thanks for choosing Unovis!
You can specify the exact tick values for
Axis
using thetickValues
property. Here's the section in the docs about it: https://unovis.dev/docs/auxiliary/Axis/#set-ticks-explicitly. In your casetickValues
should be equal tographData.map(d => d.x)
, if I understood your code correctly.