
AI Vega-Lite Visualizations
Explore a prototype AI-assisted Vega-Lite workflow that generates composed charts, mosaic charts, stream graphs, and interactive matrices, then places a visualization in an app.
Transcript
This transcript is auto-generated. Names and product terms may be wrong.
Okay, this came up during a conversation I had with Dan. We discussed specialized visualizations that will become available to all customers early next week. We thought about how we could improve and measure their quality, and started talking about a different type of AI-based visualizations built on libraries we already support, like Vega-Lite . Because they use a declarative specification to define the visualization, they are very safe; we don't have to spend a lot of effort wrapping them in an iframe, and AI generates less code, so they are faster to create and safer to render.
So I made a quick sketch. It's far from a finished product, but it essentially builds on something we've had for years—the idea of an extended Vega-Lite code where you could always go in and edit your own visualization. And for a short period of time, we even had an AI assistant that helped generate these things. So this is kind of a first attempt to bring this feature back.
Here's a basic example: I asked to create a Vega-Lite specification using complex properties like V concat and H concat. As you can see, he generated this visualization. You can fully explore it. You can open the settings and see V concat and H concat. Ahem. Moving further down the list, you see that I asked it to create a mosaic chart.
And he did it conscientiously. You can create any objects, for example, look at these beautiful flow charts. But my favorite is the interactive matrix chart I created. You can drag this element and it updates other graphs depending on what comes into view of the one you're dragging. You can choose objects. Of course, this unfolds into a full schedule , and then just for fun...
And to prove that we can close the loop, why not add this to the app. So that's exactly what I did. Yes, it took surprisingly little code to get it all working. Of course, there's still some work to be done here, but hopefully Dan will take on this work and be able to release it into production soon.