Visualization gridlines and restricted row display

Jamie Davidson · Friday Demos · December 1, 2023 · 9:50

New visualization gridlines controls and an early look at restricting which rows in the data table are visualized. This is on hold for a bit, but we'd like to get here.

Try it yourselfThe full week on docsvisualizationworkbook

Transcript

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

  1. I can do a a super small one uh I think I'm projecting now so we've got uh there's a request from I think cyberson for a little bit more visual controls too so I I and Vega supports gridline um uh controls in sort of a more granular way so we're going to add the ability to turn off grid line so this is on the y axis you can turn off I don't know if maybe to yeah you can see it you can see it okay cool you know and also exposes more things too so I could give you like a you know it can be like a pink uh or we can do like a dash and make it really big and opaque and stuff

  2. too so this is just exposing some more granular controls that that Vega does too but giving people um the ability and and it we're going to have to rethink uh how we lay this stuff out over over time you know every single toggle is going to be tough but uh you know adding it at least here right now it doesn't feel doesn't feel too bad so giving people a little bit more control cool hey Jamie uh do you think we could maybe follow up next with a way to like reset just individual things back to like the default one problem with like changing the color is that it doesn't do like it's going to be that color dark mode or light mode and so you

  3. can like accidentally make something that doesn't work in dark mode or vice versa um it would be nice if like particularly on color if we could just like have a reset to defaults or something like that does the chart default reset do that if you I mean if you if you uh yeah kill the viz config for the chart it'll just kill the viz config and you can basically build it from scratch again too I'm not I'm not sure like adding adding it for every single configuration option too feels probably too honorous you know I sort of I don't I don't know I think that there are some things we probably do want to to make at Le for at top level um color maybe

  4. color is a good good good example like labels and stuff labels I think also are kind of yeah like just the font size and you're like I don't know what it originally was or something like that I just wonder if there's an easy way to just get you back to like oops maybe does the back button work the back button Pro yeah I think it does actually work yes like maybe some of it is elevating the back button into the UI a little bit in some of these contexts undo yeah well exactly like undo is just hit back essentially um and I wonder if there's stuff like that that we could play around with yeah that's not crazy I I because I I have found

  5. that some people when they do things they're they're stuck but they don't realize that the back button gets them out of it and some of it is because sometimes you have to hit the back button twice really fast um which is like a separate problem but like the back button does actually solve most of the problems um and like if it was if it was described even or something like that I think I think that could actually be the release valve yeah something like that it just like as we get into more of these little like uh changes and you're like oh I need to just start over on some of it might be nice to offer um I found it just really easy to

  6. do something like change the labels for the axes or the color of the labels on the axis and then all of a sudden it doesn't look good in dark mode and you're like uh how do I get that to work again yeah yeah dark the themes in dark mode so we've got a lot um that's just reminds me we've got a lot of requests for like color palettes and like you know Global color pettes or palletes applied to a dashboard so not an individual visualization stuff too my my I think we probably should it's definitely very doable too I think we should probably address that probably sooner rather than later um also and like the dark mode theming is a it's a weird one there

  7. too because you really want to have two color palettes that you effectively have or like end color palettes if you've got a number of different themes that you know if we go beyond dark mode and there there it becomes like more and more complicated but like I think it's not unreasonable for us to start to think about like Hey how do we apply a global or like not a global but like a dashboard color palette too and if we were to have a dashboard color palette could you have one one and the other or you know more yeah I think we could I think we just need to get slightly a little bit more sophisticated there in like our definition of some of the palettes

  8. and like how we do the color Rod but I totally possible um I just yeah I just know that like we're getting in there like when people make something in one mode and they start changing colors it always you forget about the other one and so having on you could pick like from colors that work in dark mode or light mode or adjust automatically for you would be nice I I think it's worth though calling out that uh I do think that these are all very valid and reasonable requests too there's going to be a really long tale of this like viz is an infinitely large canvas and there's uh I'll give another demo too just to show like just another little sort of toggle

  9. thing but um I I think there are dim diminishing returns here I think that in in embed in particular there's a huge amount of Need for kind of customization and uh you want it to match the product in which you're you're um embedding it so like if you've got whatever you know an orange color palette that's in your product you have to make sure that the vi is consistent and coherent with it um so like I think we need to probably invest a little bit more than we've done there that said though every configuration option probably is not worth it and there's just like we're never going to get to to par we're never even come close to parody with with sort of existing tools

  10. too so we have to make sure we do it in a uh kind of pragmatic way where it's like it's we focus on differentiated things I have um two actually viz things that like one's curiosity do we know if if Vega has a transparent color I don't think they do which is annoying yeah like I just that was one of the greatest hacks in looker and so it would be nice if it did exist in a lot of places but totally might not and I couldn't figure it out um the second one is I I think the thing that continues to come up for me as I'm building stuff is the difference in layout between the dashboard and the workbook page in that the sizes

  11. are different and obviously we have this example this week with labels getting cut and it was 100% because the thing that someone was building in the workbook was a different size than the dashboard yeah this is I this is really just a question for Sarah and Jared but I would love to Think Through how we could make the workbook able to reflect exactly how a thing exists on the dashboard so we're not guessing in between these two or the other way the other way would be like being able to edit the visit directly in the dash yeah you're right it is just to be able to edit exactly what the user is going to I think still continues to be a problem and that was

  12. a problem forers life forever and I think this happens in every single tool I I would love if we could actually like really solve that because it this whole thing where like you think you have a thing laid out and then you need to bounce back and forth is probably the most painful experience so um it's worth some thought I was I was kind of wondering like we have like the toolbar for like the Cs right now which is kind of like sits above the table like if we had something when like you're on the viz and like I'm assuming we have the information in the workbook like the the size of it Vis on the dashboard like we have like a little Zoom control

  13. that like show it to me as it is on the dashboard just like look at it in that size or then reset it to like larger when you're in the workbook or give you a little bit of control to kind of like adjust your presentation depending on where you're looking at or working on it at so yeah I asked Eli about that once he said it's totally possible we just had to make thei el see here all right I'll show show one of the little small uh viz config thing uh too so I I then this obviously this UI is hideous and so it will it definitely will not be what we what we ship but just to show people uh a look so a

  14. lot of times I maybe I can give like a better example is like uh if you're doing something like period over period you may have uh like week over week you may have seven rows where you don't want to actually show it um rather than constructing the the query I'll just show you here but like basically I want to give you kind of a range to be able to specify like hey I want to do you know went wrong sorry my Siri talking to if you want to skip the first 10 rows and and maybe you know Skip the last row or something to that didn't seem to work oh yeah there we go there we go weird um cool but yeah this this is

  15. just like a quick quick view we probably want a better control for it too and it's also something that is going to be kind of like right now this is a basic editor that's explicitly for the cartisian um viz we really want this at a higher level this is like a you know for every single viz type you may want it maybe even for including tables yeah exactly exactly um so so we'll need we'll need to think about where this lives for kind of the configuration option too but um sort of you might just want to put it in the table actually Jamie yeah yeah the or like like the way I was thinking about is maybe we have like a kind of a global

  16. options which effectively is tables now actually um like it it's tables is sort of that because you get things like totals and some naming stuff there that essentially applies to everything that's true I think we I I think we probably want to break it out and we also want like things like tile like a tile you know so being able to say hey You' got a tab name and a tit title of the viz may be different and like you want sort of broader controls or you don't want to show the title or what whatever yeah it feels like the table config is probably the closest to that right now also Jamie if you can figure out graying the table like we did at looker

  17. um to show the rows that get hit and don't get hit that is like very instructive as to what happens that's a good call um so just a thought there yeah cool yeah Jamie and I talked about a couple different ideas for like how to think about some of the org of that stuff um I think probably just need to spend just a little more time thinking and planning for a couple the features down the road to make sure that makes sense