
Better, stickier visualization settings + autovis (soon)
Enormous improvements to stickiness in visualization settings and auto-vis. Now chart facets will retain even after query changes; toggling visualization types will retain settings; and…
Transcript
This transcript is auto-generated. Names and product terms may be wrong.
all right Switching gears um I have four changes related to autobiz this is the stuff that Ariel alluded to earlier uh I'm going to demo two of them and I'll describe the other two uh so the first one is sort of what we suspect is what most users or what users want the most basically uh what it is is now on a tab if you make changes to a chart and then you switch over to a different view or different type of chart um you make changes here and then switch back we persist those changes across viz changes so you can quickly preview what your data is going to look like in different shapes you know we can retain like different color settings um we
even currently persist this on this Branch across p refreshes for now once you leave the workbook uh these are not persisted so it's just meant to be a sort of improvement to the editing and exploration experience it's not meant to be like a long lived thing um but it's definitely a step towards the direction of potentially uh retaining these settings longer uh any questions about this one before I move on oh it also works tabs uh when when are you thinking about Landing this or is this landed or when will when will folks see it I mean if you's up it could land today okay I'm highly confident in the implementation um yeah the one last thing I wanted to demo here is it works
across tabs so in this case I duplicated a tab that didn't duplicate the other state of the the charts I had set so like for example when I click here this has gone back to Blue but really this is just the default behavior um it's because on this tab I haven't made any changes so here if I pick a completely different color yellow and then I switch back here now on this tab my state should be persisted so this should be sort of purplish so just validating that there's no cross tab bleed over of settings or conflicts cool so that's that's the one big change um second one is I intentionally did not demo Advanced or markdown and it's because those two are special cases
uh advaned today basically when you create a a cartisian chart you click Advanced it's going to show you the code for the cartisan chart and likewise if you're in kpi and you switch to markdown um it shows you your markdown code generated by the kpi vi and so here if I if I come in and I make an edit um and I switch out we're actually not going to retain the edit and that's obviously not desirable so the next the next change I'm going to demo uh attempts to address this okay so on this tab um basically we're experimenting Sarah and I are experimenting with um changing some of the behavior of advanced and markdown um in advanced when I switch to Advanced now uh
by default it doesn't uh pull up anything you know we might want to tweak this uh because it's a little bit of an Abrupt change but the idea here is we uh we make advanced mode both in markdown and in uh the Vega editor a little bit more explicit we require you to edit your code um and we don't sort of magically swap it out this was a common complaint especially when folks are trying to build out like Vega based maps and then accidentally or maybe intentionally changing chart types to see what their data looks like and then switching back and losing their data um so now to alleviate the that sort of like Gap that we've created by not automatically uh pulling in the
Vega uh code uh we have this new menu here this new Option today it just has one one option in the future we're going to have a second that just lets you view Source kind of in a modal which would be kind of cool so you can pull it up and go to the online Vega editor if you want to mess around with it but if you want to edit it in our app and have the sort of Prior experience just click this switches you over now you're in advanced um with all of the data from your chart and now because you know we're being explicit oops I guess that part of the demo doesn't work yet but in the future um when you change
chart types this will be oh actually how silly of me I know exactly why it doesn't work it doesn't work because I built this branch in isolation from this other change and when the two are merge together they're going to basically stack and so when you switch types uh the advanced code will be retained just like how over here when you make edits uh your chart configs are retained so once the two merge together uh you'll be able to change chart types you won't lose your you know your data in here you won't lose your settings you won't lose your Maps whatever you're working on um and you can always decide to overwrite by you know building a new chart type and then saying like
you Source in advanced so those are the two and then the other two that I'm not gonna cool glad to hear I was uh we wanted to get your take on this going um so really I mean it's gonna uh like every change it's going to be confusing for the people that are just used to clicking into advance but completely reasonable flow here like it's it is weird to not be able to go back and forth between the Advanced and the viz um like a routine example is trying to just see what the viz would look like in a standard State and you can't toggle back and forth at all yeah and like We'll add that like you said the popover so if you need
to just like the view the source of like a standard one like steal something or just see what how it's done you should be able to see it without needing to go view it in the thing that's editing the actual Advanced F yeah that would that would be I mean the standard now is I just make a copy but as you build up tabs that gets kind of annoying and it's really common that you're like what is the field reference on this thing I need to see the code to go grab it and so like a little bit more Elegance here is actually very meaningful the last two changes are a little subtle I'll just try to explain them quickly in words but basically um
the biggest one is today when you uh when you have a maybe perhaps an atypical um chart configuration where you you know you've stacked a bunch of things on the x-axis um when you the way our code works today when you like add certain Fields um see if this does it yeah so you may have noticed like the fields over here just reset and so the next change will actually preserve all those field settings so basically it acknowledges when a user has explicitly mapped fields to certain um Aesthetics on the chart we'll just preserve those especially when you're adding and removing Fields um and the last change is a very subtle one but um the way our sort of Auto chart heuristics work today is
uh if you like if I go create a new chart and let's do something like this um and I come in here and I like change a color under the hood we don't we don't acknowledge the fact that the user has started to interact with the config editor we only acknowledge uh when they explicitly change the chart type and so if I now add like a date Dimension the chart dramatically switches to a line chart and you know in some cases that's probably the right call uh or that's probably eventually where the user wants to go but we've gotten a lot of feedback that that can be confusing especially if you've done a bunch of work to you know narrowly configure chart you've mapped a
bunch of colors you've made some like label changes Etc and then you just uh add a a new field and all of a sudden your chart type switches so this last change basically observes all of the changes that could happen within the chart editor and um as soon as a manual change happens we explicitly map whatever kind of chart the autov VIS has created for the user to like an explicit setting so we basically say okay drop out of auto mode you you're working on a column chart we're going to stay in column chart mode and you know obviously the user can click line chart or column chart or whatever they want to switch chart types at that point but uh it should prevent that
sudden flip that people find confusing so those four changes are all should be coming out in the next week or two sack