Table styling

Sarah Waterson · Friday Demos · May 10, 2024 · 5:23

Lots of work to fully customize table styling - color controls for headers and table, better hover state, striping

Try it yourselfThe full week on docsdashboardtablevisualizationworkbook

Transcript

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

  1. I've got some stuff I'll go first I have L some table stuff thanks to uh thanks to Richard's help so I demoed zebra stripes sorry let me get all this stuff out of the way from whatever this is Rome um I I demoed zebra stripes a couple weeks ago but turns out there's a lot more stuff to get done uh with that uh to just make sure we could color everything correctly in the table so uh you'll notice a few changes in the tables got some slightly different like hover Styles just a little like clean up on some colors um and the results table um but also in the now over in the display table you can turn on row banding and so you'll get

  2. zebra stripes there um and you can actually change that so A number of rows that have a band so you could say like let's do like highlight the quarters or something like that so you can have a few colors there um and it does also work inside when you do the grouping on the dimensions um it just goes off the row number now there's probably some fancier stuff we could get into down the road and the like how we do banding in the in the groups um but uh still pretty great uh it works on and pivots too um when the result table we we just lightened up some of the styling here and then when you go to the Chart we took out some

  3. of that coloring so that we can get to some fancier stuff as well but you can also you know the banding works with the pivots as well um and a lot of this uh took to set us up to address some of our boring tables and uh Richard is helping us make fancy tables so like sure make rainbow tables um just a couple different styles of tables that I was able to make um I'll show you how we've trying to this is totally work in progress It's probably going to take a while for us to get all these little knobs right but like uh a new style tab on the table where we have controls to configure some of these things so you can go

  4. in and be like great I want to make you know a yellow head you know and I need it to have some maybe some purple text uh for trying to figure out the right knobs here so we can get things that look pretty nice so yeah we have lots of knobs now um let me go back to the dashboard the some of the stuff like we'll have to figure out our um like if I scroll down here and you see some of these tables like you change some of the settings if you have folks that use light and dark mode it's like some go through some don't you're like uh that looks weird um you know if you don't change all the settings and stuff

  5. like that there's stuff we have to figure out and it's going to be kind of crazy for folks to have um a bunch of knobs and then want to apply it to all their tables so we'll have to figure out how we'll want to get some broader theming but it's the beginning of colorful tables quick question is there such a color as opaque you mean like totally transparent yeah like something that um yes like I guess what is the thought on dark mode is sort of the we had to figure that out I think like right now right now like at least for tables Vega is going to be different but tables we can do transparency um like it's just CSS and CSS supports transparency

  6. um we need to update our Color Picker to you to do that like set a transparent color um and and there's some things that we would like to like not have knobs for and do for you by default like maybe we let you set the Border colors but we like automatically do some magic there for you stuff like that and this is where it gets into the details where it takes a little bit longer to figure out oh gosh there's like lots of little things that people will want to have to tweak to get it to look right and how can we balance the number of knobs versus the flexibility that people want like like uh it's just just going to take a little bit

  7. of lots of CSS noodling but um I don't know it feels like it's pretty close there and I think we'll learn a lot for how we'll want to do some of the broader app theming as well so I definitely had to talk to Jared because there's some magic and overriding variables and things like that to make it work but um it's you know a good first step I think we got this sort of like a broad table level maybe next we'll look at an individual column override so you could have like highlight a column or something like that um or change that um but again it becomes lots of knobs lots of knobs theming will be really important