AI chart builder

Jamie Davidson · Friday Demos · January 31, 2025 · 5:10

Some new work to build visualizations using natural language. These are all using the UI chart builder, so remain editable by end users. We hope to unify more of the AI interactions in the…

Try it yourselfThe full week on docsvisualizationworkbook

Transcript

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

  1. do a quick demo uh one sec um sorry I have been playing this is a like an earlier uh demo I've been playing with uh more more chat interfaces to hook into uh different parts of the Oh weird I don't know happened with this uh with different parts of the uh interface um so we you know we have the the Cal Creator uh We've also got uh a query query Creator um we've got the summarization now uh and uh one one big part we've we've done some experiments with um writing Vegas backc but uh I wanted basically the the sort of this chat we've seen a bunch of um just generic questions to the chat like things that are like documentation oriented or uh potentially

  2. like augmenting other things and so we're trying to hook in uh uh ability to to augment um visualizations now and this is definitely early still still work to do but you could do things like uh make oops make this a bar chart and it takes a a long moment to to go back and forth I I I suspect it's because we are uh asking for you know the llm to construct uh our our kind of version of visualization configuration which is not like a standard like the nice part about veg a light is it standardized and these things probably trained on um you know example data sets or like the nice thing about Excel is there's an infinite Corpus content for Excel content um for

  3. our VI type it's only the prompt that we we have um but so you could see you know changed it to a bar chart or you could do things like a swap the X and Y AIS uh um you know I don't I don't know but if you if you wanted to do this I I think that probably the inter you know the immediacy of the interface is probably better but like if you don't know for example uh that you could swap the X and Y interface maybe it' be good or you don't want to reach in you know to a a nested submenu of a submenu of a submenu to turn on totals or regression or something like that you know we could basically

  4. make it make it exposed uh more more generally um this definitely work in progress though it'll it'll probably be a little bit before we we break break it out because it's it's not great there's definitely lots of examples where it'll fall down um but excited about this area too is that hitting the raw Vega spec or is it building like an omni thing that you can then you know touch and feel it's an omni yeah sorry can show you too it's it's an omni viz that you can actually touch and feel too and the nice part it means that basically the the viz editor context too or the you know our our options here are all live um that that is uh that's the intent

  5. and I think we we want to get get there sort of like slowly but surely um you know it's about like providing enough context to the LMS and enough examples too so like but I been I been experimenting with um locally but it's not yet fully working uh is using like the top 10 viz the you know queries and viz pairs uh as basically examples to the the llm for a given so for a given topic so like in this transaction topic you know I've got a handful of viz that are already on the instance and using them basically as ways to prime it sort of a a rag rag technique um that it seems to add a ton of a ton of value to

  6. but it's hard because if for example if I show you uh you know can you uh let's see actually I'll let me remove status and then I'll say can you add can you add a regression line so this is something that like I haven't U haven't yet provided a good example for in the llm uh it does not it most of the time it basically creates a invalid Vega spec or invalid omn viz spec that kind of blows everything up um and so like uh got we've got room it's nice that it's been doing a awesome refractory proection kind of prompted me to even think about this to be able to create a Zod spec to Define our new Vis and it's not it's not

  7. everything it's sort of in the process of being developed uh it didn't even do anything here um weird I don't know why I don't know what what say yeah the non-determinism of LMS also is uh kind of kind of fun to develop it but we I want to make it so that you know we can generate a spec we can pass it through sort of a a check or or something like that in our system too before we pass it all the way through it's it's not it doesn't exist yet so milon Jimmy I wasn't watching the URL can you just hit back on that to undo whatever yeah so actually sorry I'll I'll show you to it is this this is nicely integrated with

  8. uh our our history oh I don't have history because it's not an actual dashboard thing um uh be in the URL though just hit back in the UR yeah yeah back back in the URL will so the back in the URL definitely works we also will have uh basically history entries for like AI generated VI AI so you could actually go back to it's sort of well integrated with sort of the the change management in the in the app as well thanks