Color modeling launch

Rob Miller · Friday Demos · December 13, 2024 · 6:17

The launch of stable colors in the data model. Now your dimensions can maintain consistent coloring throughout the app, or even just for a particular workbook. We're excited to also open up…

Try it yourselfThe full week on docsmodelingvisualization

Transcript

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

  1. do not have it up I can do it extraordinarily live which means it will fall on its face it um so let's try an instance I've never been in before and see if it works for fun and not stress at all um so as Ariel has kind of you actually might not want to use demo because that is a behind on release well then it'll be even better because I don't even know where else I can go uh sure play playground no or yeah but there's so many go post just yeah post wait what post yeah I would go postgress demo there where does that correspond in here so Ariel is you're on the wrong instance am I oh am yeah this is a collaborative

  2. demo just live which one was it yeah that one post yeah see but now you have so many options okay let's try let's see so as Ariel has mentioned uh some of our colors work is now live uh specifically just coloring a dimension by value uh so syntax is a little verbose at the moment but we are kind of leaving the way open for um like filter like syntax here eventually uh to be able to um make our value matching a lot more flexible in the future uh so if I set uh a condition on my I've added a colors property on my status uh if it's complete it should be green let's see it worked wow amazing uh so you can now actually set

  3. uh consistent colors for your dimensional values um across charts and robit tap check probably has a much better example on his instance that has been posted already uh that I would encourage people to go Gander at it's kind of nice uh uh he has Prett pretty good use cases for it so feel free to get in and play with it is the idea that it replaces the color in the pallet list or that the palet shifts under it like how does it interact with uh like I've got a 10 color palette and I replace the first and the third so right now uh what it will do is it replace that color um okay so it does not shift the palette at the moment I

  4. would like to fix that but I I have not figured out how to do that in Vega yet so um I'm still working on it I think both are justifiable yeah was putting that control in the model layer uh like the yeah I'm curious where that came from I would think as a user that I would set that more front end but um we we are going to add front end controls eventually okay that's that's like the next stepo uh the the Rob if you go back for a second um to the workbook yeah I mean the the kind of vision here in Sasa MOX is that you'll be able to just override on the viz layer here like per value what it is but

  5. the benefit of having it in the model is that we can promote this thing down uh which means we can do it make it reusable so you could do it an override on a chart you could push that to workbook so now it's consistent across the workbook and then you could even push it down to Shared so now it's consistent across workbooks so we just happen to start first cool yeah across across the workbook I had thought about but that's like that's an amazing idea yeah it's great that's basically what the our customer did he did 12 charts using the same statuses and he just one of them some charts didn't have some statuses it was all over the place um was pretty sweet I

  6. okay okay I was just gonna kind of ask an edge case question Rob it's okay if you haven't figured this out but if that green existed in the pallet that you were using and was being assigned to a different value would both of those greens show up currently yeah it yeah whatever you put in the model there's no knowledge of how it interacts with whatever pallet you chose right that makes sense okay thanks there's also a futur looking plan where um the the model will actually calculate the conditions and then return the color values as a hidden column you know sounds like possibly novel but the interesting thing is in the future when we have things like uh well I guess we already have a

  7. query API but if you're consuming a query API and you just want to build your own viz somewhere else um and sort of use Omni as almost like a headless bi stack then You' get all that color mapping along with your result payload and Kylie we'll be using that like you can apply the same color to values for like options if say for the statuses you only wanted to like color the return stuff red and leave everything else the same color it allows you to do things that like can like make some stuff pop or highlight versus not and you'll get some options on how you want unassigned colors to work if they um they don't have a modeled value makes sense thanks