UI for advanced charts

Jamie Davidson · Friday Demos · January 24, 2025 · 5:31

Advanced Vega visualizations mean no cliff for building to completely custom use cases - now those visualizations can be wired to the UI for easy building and configuration (and later…

Transcript

This transcript is auto-generated. Names and product terms may be wrong.

  1. so I I've been scrambling to to try and get another demo together that I I failed but I'll show you the the uh simpler version of it uh so last week Colin demoed uh I think it was last week uh the basically a new pattern in our Advanced viz where you could basically reference you you use a transform to sort of have uh easier uh basically variable insertion um and it it uh sort of suggested that we could to do things like create a a template for our Advanced viz you know things that are um you know more more than what we do we support sort of custom out of the box so here just as a reminder this is sort of what the the

  2. transform looks like uh for the patterns and and all of our custom Vis docs have actually been updated for it um and so I I wanted to create uh a version of this template and there's still this is definitely still a little bit work in progress um on the ux side too but basically what we do here I parse the Json spec of the the vegalite config uh and pull out the variables that are uh you know assigned so this is like a simple version of uh of building a template um and you can actually apply it to uh you basically can apply the fields that are present sorry I didn't show but the this is like I've got a you know a query with

  3. like weekly department and and two two measures um you can apply the fields present inside the given query to to the actual config and then then we basically will um construct a sort of rendered config to for the for the specific template so just to show you what this looks like um you can basically select all these things and what it's doing basically underneath the hood color is supposed to be Department um oh damn it I broke something but uh something oh I need this one maybe oh there we go good good it was it was just us thank you thank you Sarah just user error uh so I didn't break something I've been breaking something all morning so uh uh we want to basically

  4. make this a little like look like a v a viz type uh that is a normal viz type too with like things like available fields that you can drag and drop into the Aesthetics and stuff too so we we will do this so that it'll feel like uh a native Omni visualization but uh but gives us a lot more flexibility to to do for everybody this is a this is like a you can pan I don't know my my dashboard is not not not working or my viz isn't there we go okay well you pan uh in theory on this I don't know I'm having uh like what happens if you swap a measure so what if you go to oh yeah yeah yeah count

  5. yeah so actually just to show you an example I actually I forgot thank you for the the the the trigger I obviously you know here I've got a field picker that's swapping out Dimensions so like I'm putting traffic Source instead and uh it actually we already the field picker um updates the uh spec and we actually pull that that it's a a mapping object actually automatically automatically work for folks or if you wanted to to build another uh you know Revenue we could build a field picker um and you know add a I'll just add another simple field whatever I don't even know count of something or I'll rather uh products count um just as another example you know you could go in and look

  6. at this chart and then swap revenue and products count and I don't know why we're showing the table config but uh but it should it's updating the the the config that said though too this actually is a good good example uh count of sales here you know uh is is already in inside the Vegas spec um we're defining that label inside the the The Legend um title probably uh and so like we you know we would want to build templates that are sort of sufficiently generic to be able to allow for you know whatever variable that's being inserted there um is the thought that also we could install it an icon up here is that possible I I actually think we should have something like

  7. a template library or something where you could kind of like click into the template li like because like there's there's a handful of patterns that we definitely would want to to you know support and maybe they're like installable too on a per customer basis or like I could build if like a customer builds a specific one that's relevant for them too you could reference that you know themselves and then sort of tailor each individual uh uh you know query but I like I think we probably want like sort of almost like a template viz type that uh you know maybe as a library you open it up and you can select whichever template Vis you've got uh to and maybe this chart selector starts to

  8. become a little bit more Dynamic Jam I have a question um I have a customer who liked our markdown funnels but they wanted to do it for like upwards of like 10 different categories like say they put the markdown code in there for all those categories like would the UI be responsive to bring those all out into field Pickers like you have or it get complicated after that we we don't have it for for I this is basically only for the like Advanced Vegas back but like I don't see any reason why we wouldn't want to do that for markdown like that that makes a ton of sense is completely reasonable I I love that idea cool yeah then Sarah's demo from last week can

  9. be a card template yeah