
Visualization axis tick spacing controls
We've polished up the controls for axis ticks, especially for time groups. Now builders will have fine-grain ability to tune axis breakpoints.
Transcript
This transcript is auto-generated. Names and product terms may be wrong.
I have a couple of demos um risk everything and share my whole screen okay these spend a couple of his things and then one in bed thing um last week I demoed the this quick tick count uh hack and so just showing like the updated progress on this surprisingly a little bit more complicated than just throwing an input box into a form um so Sarah has uh graciously provided a bunch of really nice designs around this uh so basically now on this y AIS which is numeric we can toggle between automatic and custom and if I say like two I can control the number of ticks on the Y AIS uh if I switch back to automatic it resets it basically and then more complicated
case on this x axis which is temporal I can also choose custom if I want or I can choose this new Option interval and interval allows me to choose uh a sort of time interval and and then the number of steps so in this case uh if I set year to two you'll see that I only get two ticks but they uh are every two years and if I set it back to one let's see like one per year and I can do this for like months as well um so pretty cool you can see if I set it to 12 this is obviously every year uh yeah just fun like nice way to give folks discreet control over the way they want the tick
to show up uh Nate I I know that we've heard from a lot of people that um when you choose a Time grain in Vega because they view time is continuous um like the time grain can mismatch from the axis grain is there any thought to like the time grain that the user selects and how that feeds into the Axis or would users you mean the field yeah exactly yeah so that's the next thing I want to build okay because like if you take this you take this down to like seven weeks or something like that you'll get time on the bottom and it'll be like every four days or something and people are just like how did Vega choose this and the answer is
like I have really strong views on time uh I strategically did not include that My Demo but since you called it out uh sorry uh no it's cool um yeah one of the things I want to do next is uh try to pipe the the field metadata all the way down to this selector in a way that allows us to potentially optimize which interval we select uh nice yeah sool some more experiments that need to happen there um I might ship this as is just because it's already useful and that as a followup okay