
Vis config overhaul
The final touches on our overhaul of visualization that maintains ad hoc changes, but still intelligently updates as queries change
Transcript
This transcript is auto-generated. Names and product terms may be wrong.
here I'll show just real quick uh kind of continuation of the automatic stuff which is hopefully going to land pretty soon too and I want to call out Luke Luke Chris and Nate for helping me with uh figuring out the migration effectively for it it's going to require sort of a API breaking change in our no node layer and we want to make sure it uh doesn't result in even for folks with old clients uh any any breakage so uh I think we've got it we're going to test it on playground uh maybe even today but uh I think we've got it uh at least it works locally now um so again this is the automatic work so basically we're trying to make it so
that you're always in automatic mode we always incorporate all of the user inputs into visualization we try and retain them over time too but every new change so for example when you add a new field for for uh a query it will be incorporated into into the chart so I'll just build a quick one just to show maybe a new example here um screen so I can see a little better um so I'll just add you know this is a a custom uh a custom visualization now um if I were to you know say add quarter but really I wanted to grp you know Group by this uh this status piece to and put quarter as a means for for coloring we still retain the
the data labels here but you know quarters may be not so useful actually as as a legend item if I want to go and Swap this out uh you know previously we basically would kick you back into uh automatic mode when you change the field on a given query and it would re reset all of the access um uh mapping um so that you know are like lightweight heuristic is time always going to be on the x- axis if if there's no user uh sort of input but in this case because I you know manually had dragged status into the x-axis it's going to retain that that setting uh until it's basically explicitly uh enumerated so it's going to it feels a lot a lot
better there's just a couple caveats there's definitely still some things that are not completely retained uh too oh and Colin remember last week you mentioned uh being able to blow the stuff away uh so like blowing the we we do have the ability to blow away uh viz config we it actually uh it it doesn't actually really work right now as as it is too but it's a part of a a completely separate sort of refactor of the life cycle for viz um and sort of a a fixing of the types um we're actually going to fix that too and basically be able to actually completely wipe wipe away the stuff so so will happen in two two two sort of separate changes but it'll
that that will work or start to work now as well that's great do we want to surface that do you think a little bit like closer to the viz editor I think I think it wouldn't be crazy to to have almost somewhere even in like I I think we're going to want oh I guess maybe also to is like worth calling out like there's a slight refactor of these the quick charts uh we get rid of all of the single quick charts um in in this change too I think we want to change this in in general probably and I think that it it like the resetting of the viig would make sense to me somewhere somewhere here where it's like hey blow it away
show show me a new one give me the suggested yeah yeah and I think actually too this is one of those cases where the sort of gen or suggested based you know sort of uh workflows may make sense where it's like hey you know given a a data set to can you recommend to me a configuration or can you recommend to me a visualization that that would make sense it doesn't have to be powered by you know an llm necessarily but you know I think that that sort of workflow does it's like give me some recommendations or something like I think that's a a common sort of thought process given this you know given this implicit data table here with metadata associated with this data
table that we know because of the data model is it realistic to um for the viz suggestor to know the shape of the data in the data table like do we have that information or when do we have that information I guess so we have some of that information not all we have the metadata about all this what we don't have is necessarily the cardinality of the data so yeah we don't have rows or C but is it possible to build a pipeline for that like even as like a second order thing for for sure we should because like in this case for example just like a simple one like there's fewer data points in the year than there are in status so like that
that you know in this case because the user already manually said it it shouldn't overload anything but like were we to be in sort of the pure automatic mode you would want that information to be fed into whatever heuristic or or something is is in there so like I think that makes it a ton of sense there may there may be ways we can do it where it's like a secondary query on top of basically the stuff inside the recable cach that could happen it could happen asynchronously too it's like it's not as a part of the you know rendering of the data table but once we've got the data table or the data loaded we could then you know do like basically a simple
profiling where we basically requery this cache table and pull out you know like account distinct on this or all of the fields or like the minute you know one thing we we do do like pull the minute the max of of the the range and stuff like maybe figure out does this you know what sort of access you know just distinct over dimensions and pivots I think is like almost what you want because it's like so much of it's It's you're comparing if you have two and then you're looking for like if I have a lot of data points I probably want points or lines if I have fewer data points I want bars type stuff that's right um but yeah I I don't think
you need much metadata it's really just cardinality probably I think that's exactly right sort of the first the first cut of it uh too and like we can get we can get refined as we as we go but I I totally agree I think we we like right now we really do just say like hey if it's a if it's a string we assume it's lower cardinality than dates and numbers which is you know sometimes true but not not always true yep Jamie can you remind me the automatic Biz mode yeah is deterministic in the sense that when it comes up with a B config that is saved in our database and that we will not change unless user intervention happens yeah we will not
change it yeah basically we only change like basically you could think of the the automatic viz mode takes and input the old VI the old viz config and a new array for fields and generates a new viz config if that new array for basically and like given the two inputs it should always have the same consistent output it's sort of deterministic system um if you change either one of those things if you change like you know add a new field or take away a field of course we're going to update the viz config and like if you don't have the field build present inside the viz uh in you know in in the data table or like you had if if we if we you
know just show you if we remove status from the query the viz should update and like it should change to you know the created year and even though we had previously set the status on the x-axis it's not there we shouldn't error we should make it so that the viz just updates an intelligent way because the user's given us input um but yeah that that's sort of the simp the simple got it I think what I was really asking is is it persistent and but it sounds like the answer is yes it is ised cool yes right and maybe maybe one thing to note though uh for uh if we completely change the automatic algorithm we don't save the automatic viz configs if it's just
generated purely by the the basically the field array or the query that that is uh generated we don't save it in the back end because we can sort of rederive it so if we were to change theistic uh viz would potentially change we we should think about how we want to do change management for that because like for for example if we make a better heuristic where we can use the cardinality of the data and like we we had that you know the status if we had the status back up and like you know now it's back on to you know the x-axis or something um we we may swap the axis and the color in the pure automatic like this is not a pure
automatic viz config this has been manually configured but we we may want to think about change management for purely automatic stuff because we actually don't save what we currently do because uh we regenerate and just to make sure I understand you're saying when purely automatic means that no user input was ever yes that's right that's right yeah I do think we should think about changing that it feels to me like any behind the scenes magical change is going to be unwelcome even if it is better yeah I think I think that's that's really true uh and we could change it even as part of this work I don't think that' be it would not be a huge lift to go do it so I might
even actually add that in I like but even if the I just routes you towards the chart selector for example better like we we can make the magic a second step yeah that's right cool