Markdown AI vis generation

Jamie Davidson · Friday Demos · June 6, 2025 · 2:48

An early look at building markdown visualizations with AI. Plenty more work to do, but plan to allow completely custom visualization via markdown through this approach.

Try it yourselfThe full week on docsaivisualization

Transcript

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

  1. Uh I think I'm next. Uh so in a similar vein to some of this AI stuff too, we we already have so just looking at a query, we already have markdown viz and this is not available yet for for sure and is very much a work in progress. Um we have we have a markdown viz. We've got the summary markdown viz uh as well where AI is effectively generating based on sort of a standardized prompt like a good a good summary for it.

  2. But uh what if we could just do a little bit more of a generic prompt to generate uh markdown viz? So my generic prompt inspired by by friends from Summit uh make a Texas themed KPI viz and let's see how how it works. And it's definitely not a terministic. So uh we're still got to work on it.

  3. But here here we go. We got we got multiple dollar signs. So sorry. Gota gota got to work on a little bit a little bit. But, uh, you know, looking at some spark lines and year-over-year breakdowns, uh, it it's referencing the values, too. So, it is it is reusable. I I did have to spend a little bit of time making sure it just didn't uh hallucinate random values because it definitely did that to start.

  4. So, still still uh a bit of a work in progress, but uh you know, and the idea is, hey, you could you could also say like, can you uh update to make this a mermaid uh theme? Um, let's see. Oh, no. It didn't like didn't like me asking it to change it. Sorry, I I broke something. It's early, but but uh excited about the general direction.

  5. Oh, wait. No. Did I do something? I don't know what this is. I did something but I'm not sure what. So does it um Jamie does it have the ability to do any of the HTML CSS stuff that we're allowed to do in markdown or is it just pure down right now? It does although for whatever reason I uh I it doesn't do it well.

  6. Um I I basically provided I I went through our docs provided a we've got like a bunch of great example markdown docs actually. Um, so I I provided them as references. Uh, and it will do it, but for whatever reason, uh, either our renderer or the, you know, kind of the combination of the style and the HTML tags too basically does stuff that we effectively can't render.

  7. So I I don't really know why, but uh, I wanted to. That's cool. Very cool. I I do think we have some flavor. Jared, Sarah, or uh, Richard would be the experts there, but there's some flavor of like ordering of things that doesn't always one to one. Yeah, I think I think that's right. So, we basically just have to give it a little bit of context, I think, there.

  8. And I just I just haven't haven't done that yet. Cool.