Legend selection and deselection

Nate Agrin · Friday Demos · April 18, 2025 · 2:12

Now legend selection and de-selection is available for stacked bar chart, using both color faceting or multi-series stacking.

Transcript

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

  1. Nate, you're muted. I don't know. N we can't hear you if you're talking. We see you, but we can't hear you. I know. I literally couldn't find the room thing while I was sharing my screen. Sorry. Okay. Uh this will be the world's fastest demo. Um, so this is just a chart with two measures and now the legends are interactive.

  2. Uh, and you could have any number of measures you want. Um, also works like stacked. Uh, and should work like sideways. Yep. Basically anything that's stacked. One thing that I'm just going to call out is uh it's a little confusing, but it doesn't work on line charts or scattered charts because they are not stacked by default. So, if I add stacking, you'll see like whoop.

  3. So, now it'll work. And there's an issue already open for that. Um you don't need to file one. Uh and then the other thing I'll call out is this also does not work if you have mixed mark types. Um that is I actually figured out the solution in Vega for that but that is like entering uh multi-dimensional universe that um would require a pretty large change to the way our vis code works right now.

  4. So, I really would like to put that off until after this other refactor work. Um, this just to be clear, this is all work that I did in the old viz pipeline um as a stop gap to close uh potential customer. And so, um yeah, there might be bugs. Just yeah, let me know if you see anything a little off.