
Templated custom vis
We rebuilt our custom visualization templates to more easily wire to diverse data tables (ie. only plug series in one place). This will underpin the work to then present front end controls…
Transcript
This transcript is auto-generated. Names and product terms may be wrong.
um cool last Quick one for me it's like half PSA half uh thing so um as everyone knows we have custom visualizations they're full of Vega code um the challenging part about using them is actually finding all the field references in them uh so what I've gone ahead and done is I have taken every single one of these custom visualizations and you'll notice that there's a new transform all of these will now only accept references in these transforms with capitalized field names so if you look at any of these specs now what you'll see is that the variables are all pulled into specific regions such that you only have to replace them in one spot for all these visualizations so rather than sort of finding
the references in every single place there's going to be named variables and they will make it so that you can sort of build these things more easily so like sank is a great example there was like 50 references to these fields um this is actually an example where there's two transforms also so you actually have to do you do have to plug in twice here um to two different sections but what it means is that you can sort of drop in these visualizations so like this one again relatively complex visualization we can pick it up and you can see that there are uh a handful of references in here but let's go drop this in I'll start a new analysis and the whole idea is
you can kind of figure out the things that you need so uh top y bottom y so we need two variables and then uh an xaxis and a color so I will grab uh you know like user count count California minor or let's just do count minor it's a little bigger we'll grab a date and we will color by traffic Source I can go to the Chart I can drop open the visualization I can paste the whole thing in and now I just need to remap my Fields so this is going to be users created at week uh users uh.
count we'll do users what is this users count minor and one of the nice pieces here is that um you actually don't need to do the escaping inside these I don't know why but you can paste them all in again this is one that has two so I will grab this and paste it up here but you can see that now it just works um so much much easier to install these hopefully it's the underpinning for actually turning these into input boxes over time but you can see how much easier it is to sort of install these visualizations now and uh and just have them work so all the custom vises are like this now and please if you make a custom viz uh before
you post it pull out the variables it's incredibly simple