Multi measure chart stacking update

Nate Agrin · Friday Demos · August 8, 2025 · 5:23

Huge progress unifying multi-measure and color faceted charts with stacking, labeling, and faceting. The new visualization pipeline will both improve the quality for existing vis, but also…

Transcript

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

  1. Hey guys, I just wanted to record a quick demo of the multi-measure uh refactor work I've been I've been uh spending the last couple weeks on. Um so most my focus has been around getting as many of the stacking implementations uh done as possible and then building on that getting the label in work. Uh my plan is to merge this sort of chunk in the next couple days and then um you'll see that the next step will be multiaxis work.

  2. Uh and I believe after that we are done. So, here's a quick example of um a dashboard that has all kinds of different stacked charts. Uh like stacked bar charts that are split by color, stacked line charts. Um you know, there's multimeasure line line and area charts here. There's mixed uh bar and line stacked charts. Um, so you can see stacked percent charts.

  3. Um, so the cool thing here is, you know, all the interactions we've been working on, in particular, the multimemeasure interactions work correctly. Um, so that's great. We can, you know, show and hide uh mixed mark type layers now, which we couldn't do previously. Uh, even works on stacked percent charts. Um, and then you know these more complex examples like this one has three measures with labels and different styling.

  4. All that stuff's coming through correctly. Um, grouping also works where you have different series adjacent to each other instead of stacked. And then as I said there's some uh charts that are not currently supported. So these are still rendering through the old pipeline, but this is the next uh bit of work. And then one more quick demo um of this label dashboard.

  5. This was actually a pretty significant lift to get the intersection of stacking tool tips and labels uh including our two labeling approaches, the sparse and dense labeling working correctly. Um so you can see here everything's working. Um interactions are still preserved. You can selectively apply labels to each measure. So um you know they work. The different labeling algorithms continue to work.

  6. So you can use sparse labeling as as I'm doing here or dense labeling as you can see here. Um, and one last little fun preview, uh, is down here. This is a multi-measure, multi-mark type stacked chart that is faceted, including labels. So, you can see I can filter across facets with multiple measures now. So, yeah, that's it.

  7. Um, it's going pretty well. It's definitely been a lot of work. Uh, just to give you an idea about like how this stuff works, I can zoom in um and show you what the Vega configs are looking like now. Um, so basically what we do is, you know, in this case we're faceted. So at the top of the chart we have a little preamble about how to facet the chart.

  8. And then for the multimemeasure uh charts for all multimemeasure charts now we use a measure name measure value concept and this is going to be surfaced in the UI in the coming weeks or month or so. Um and then we basically have this concept of layers. So I'm calling it an L1 layer is the sort of topmost layer.

  9. It's things shared across all the axes like the X uh axis and tool tip formatting. Um and then the L2 layer is uh maps to a specific axis. So if you have uh left and right axis, you would have two L2 layers. And those things typically have some transforms that filter the data set down to the the columns of data or the measures that apply to each axis.

  10. Um and then below that there's an L3 layer that represents all the marks. And to get all this working and all the interactions working, we had to break apart a bunch of the mark layers. So there will be like an individual layer for bars and lines. Um, and I believe as well an individual layer for labels, which allows us to separate things like uh having no tool tips while still retaining labels on the chart.

  11. Previously, they were um they were combined into a single layer. And so if you remove that to remove tool tips, your labels would disappear erroneously. So, just a lot of detail. Um, and you know, I think the code's feeling pretty good, pretty solid. Um, and pretty stable. Um, so feeling good about it.