Massive vis, big performance wins

Nate Agrin · Friday Demos · September 19, 2025 · 5:55

We're continuing to toil away on the most complex, largest visualizations. Here, some work to optimize tooltips in edit mode (ie hide them), and new work to pause rendering for dashboard…

Try it yourselfThe full week on docsdashboardsvisualization

Transcript

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

  1. Cool. Um, I got my two quick demos. I know we're way over time. I'll just try to keep this super brief. Okay, so we have this dash. This is a completely contrived dashboard. Three copies of the same query that are extremely large. There are 50,000 uh 50,000 rows with the when they hit and they're extremely wide. Um so you know most of our customers are not building dashboards like this but just uh as an uh exercise to try to improve general performance um Rob and myself have been experimenting a bunch with things we can do.

  2. Um I should have also I guess prefaced all of this. uh we've been doing a little bit of a spike around improving like viz performance and as performance projects tend to go uh a lot of what you learn is not that it's just about improving like the viz rendering directly a lot of it's how large you know like large data sets interact with the UI generally um so on this uh this dashboard you can see like tool tips render kind of laggy the um the highlighting of which tile I'm hovering over is very laggy.

  3. And so if I'm like trying to grab one of these tiles to move it and I click and start dragging, which I just did, nothing's happening. Oh, now it's finally dragging. Um so we've been experimenting with a couple modes. These are out there in the wild, but they're all behind flags. Uh so the first is disabling tool tips when you're in edit mode.

  4. Um and so you know when I refresh the page here you're still going to see it takes like a moment for everything to render and then kind of settle. So let's just give it a second. So now in theory it's settled. So you can see as soon as I mouse over the highlight shows up and uh if the demo gods are with me I can just kind of like drag this thing around with no latency.

  5. Uh so that's a much bigger improvement. Same with like resizing. Although here you'll see we start to like we hit these janky spots where um React and uh our charting library are trying to render and so like things suddenly freeze up. So that brings me to my next demo which is um this sort of beta-ish mode that we're experimenting with.

  6. We have some design improvements we want to apply. But um again, initial rendering still slow, but once everything's settled, we get that nice fast selection because I still have tool tips disabled. But when we resize, we swap all of the viz out for these placeholders. So now we never hit that janky, slow, choppy rendering. Um, you know, the downside is once I release obviously they all have to rerender.

  7. Um, and in this like exaggerated case that takes a moment. I can also just like drag and drop at will. Now, um, couple quick notes here. Again, behind flags, we're going to experiment with um, keeping any element that is not being resized or moved. uh visual or visualized so that it doesn't turn into a placeholder and only uh swap the one that's being resized with a placeholder.

  8. And then the last thing I just want to point out super quick is uh we did make an affordance for the case when you're trying to edit a chart that has tool tips on a dashboard. So like this you can see this charts tool tips are disabled. This chart's tool tips are disabled. But because this one is selected, the tool tip appears and I can even go in, I can edit the tool tip and um you can see the update.

  9. Uh but if I if the gods are with me and I select a different chart. So now this one Oh, gods are not with Oh, sorry. I lost the flag. Um, okay. So now this one tool tips are disabled and tool tips are enabled here. Um, so you can go I can show you how to do this on your customer instances if you want to experiment with the flags.

  10. Um, you know, again, often performance is not just strictly about like the the rendering of a thing like viz or like filters or colors and it's often about this intersection of like actions people are trying to take on things like a dashboard like drag and drop resize. Um, this is in line with some of that work I previewed earlier.

  11. We're trying to also experiment with like autoaging data sets to make them smaller. And, uh, there's another spike of work we're planning on doing in the next couple of weeks to, um, effectively offload where we do the rendering. So, that initial slow rendering that you can see like when I stop dragging um, in theory would be significantly faster as well.

  12. So, stay tuned.