
Vis config stickiness work
Work to keep vis config stickier. We have lots of work to do to make vis keep changes but still evolve with queries, but progress
Transcript
This transcript is auto-generated. Names and product terms may be wrong.
uh sorry struggling to find my screen if you look on the viz Channel this is not really new but um basically I have a a demo instance where I'm um playing around with a pretty subtle change that um that basically is an attempt to start addressing some of the autov VIS uh uh feedback um so here we have like a bar chart and then if I switch uh my Dimensions um you know like this might turn into a line chart based on changes I'm making um and if I go in into um over here assuming I know how to do this demo correctly and I do something like change the the domains um and then switch my Dimensions um this is perhaps a poor example
but I'll just reduce the row limit so you'll see that it stayed a bar chart and didn't switch to a line chart um and so the general idea here like the the sort of algorithm is anytime a user interacts with a viz we're going to potentially start persisting more and more of the state um you know I don't think in uh isolation this change is going to solve a huge amount of the autov viz feedback but I think something like this change combined with um things like as I add New Dimensions not changing the mapping of the dimensions um and you know as people configure their charts more and more sort of respecting those uh explicit configurations more and more um the the two sort
of combined will improve the experience and address a lot of the feedback um and then the last thing we're going to play with is I think we're going to add some kind of like Auto generate or reset button um so if you want to bail out of this like you'll be able to get back into a state where uh the viz can render itself and that's actually nothing new we already have that it's here it's just yeah pulling it out of the menu and making it maybe a little bit more prominent yeah my quick ask is just something that explains dirty State like actually Nick could you go back to deine for a sec uh y uh I have two small questions one if you
hand this link to someone else after you've put that 100 as the cap will they also be locked to that or would they would it would it evolve from there well uh I happen to know that you were gonna ask this question so uh I have two answers one is technically as written today it would be locked but um you know since I know your Colin's gonna ask this question the other answer is like we can obviously make it do whatever we want so we could say like oh a different user is looking at this now you know set it back into like display what the first user sent but then set it into an auto mode so that as they click around it okay
perfect yeah yeah yeah I and again I haven't played with it enough yet um but that's ex my fear is just that someone has a locked access and they have no idea why the hell it's locked and we need to explain it to them it's a very subtle change I don't think it's incredibly obvious that anything really is happening but um yeah if you compare it to like something on playground it you'll see the abruptness a little bit more yeah uh I I remember my other one if you removed date there is it going to stay a bar or will it turn into a single value like um how does it react to like different chart types well I gotta give props to Ariel because
we talked about this yesterday um so okay so again programmatically it stays a bar um and that's actually like if you look at the industry that's kind of what like Tableau does and other other libraries do and uh it's again kind of like a tricky space because um in certain contexts like if you've done a lot of configuration and you've built out this bar chart that you feel really strongly about and you're just trying to like move fields around you might not want the viz type to swap but but in other cases obviously like you might want it to switch to a single value um yep and so that's the thing that we're wrestling with and you know there's like one approach is we just
do nothing leave it at bar chart as as the code's written today and put up some messaging saying like you're trying to render a bar chart but you have no Fields or you have one field or something uh and you need two the other is you know maybe in this giant flow chart of possibilities we allow exceptions so we say like oh you're down to one field so like let's switch to single value um if you did the switch to single value there could you go back to having the state once you add the field again cuz to your point the common use cases is like remove field re field can we go through intermediates where we have memory or is that unreasonable yeah so
now we're going full Galaxy brain and that that was the third change that I wasn't going to bring up today but so then I think the the third thing we need to do is sort of like preserve the last uh rendered state for a given type so if we are going to swap types then um you should be able to go back to a bar chart and in fact like I wasn't going to bring this up because I don't have a demo but uh up here like I often shoot myself in the foot by quickly thinking of these things as just Mark selectors and not like give me a new chart selectors um and so uh like part of that configuration would be to retain
all of the properties here like you see it pretty dramatically if you switch away from like a cartisian chart like if you go like boom it can completely Blow Away um y your chart settings although right now it's not so I don't know do p too do a p usually it happens with a with advance for me I don't know maybe I fixed some other bug that I didn't realize I think you're in default State anyway though yeah well but the domain set I think oh maybe the domain's not I I think go add on set oh I know what it is I uh I reduced the limit so I'm not looking at the typical default chart anyhow um yeah so a better example of
what we're talking about would be like this so like right now if you go here and then go back to Bar you get that and that's not what most people want they want to reserve the domain y yeah we could probably work on that ux of that those quick charts too like maybe they don't need to be so it could be like a we can make that like the mark selector more prominent too if we want people to select for Marks differently can I I do think people have expressed though that it's somewhere in between an autoz and a mark selector so I don't like yeah if people want to use it as like a pseudo Mark selector I don't think that's necessarily bad it's
just we need to sort of give people the right actions yeah cool