GPT-3 Does The Work™️ on generating SVG charts, with a quick web app I built with @billyjeanbillyj. With a short sentence describing what you want to plot, its able to generate charts with titles, labels and legends from about a dozen primed examples. cc @gdb

Jul 21, 2020 · 3:23 AM UTC

It works by compiling the sentences to vega-lite (@vega_vis) by @arvindsatya1, @kanitw, @domoritz, and Jeffery Heer. Vega a high level grammar of interactive graphics built for exploratory data visualization.
The next step is testing the limits of GPT-3's semantic search to visualize arbitrary data content within its memory set. It seems to have a baseline understanding of arbitrary statistics it'd be amazing to autoplot everything it knows.
This is mind blowing. With GPT-3, I built a layout generator where you just describe any layout you want, and it generates the JSX code for you. W H A T
Nice, I was working on priming it with Chartjs. Generates pretty good scripts after 4 examples. Though it stumbles in matching the parenthesis a little, I think with a little bit more priming it should work.
Replying to @nutanc
Starting the day with a chart building demo. Primed GPT-3 with Chartjs scripts to generate the below.
Yeah, the reason I used vega is that it wasn't code, it allows a variety of charts to be specified with a JSON. Once I leveraged that abstraction it was able to get it with very few syntax errors
Keen, please clarify what this demo is showing. Are these data just invented by the model, or are they being pulled from some source based on the user query?
Yep, every chart uses data from this dataset github.com/vega/vega/blob/ma…
@alxandrecarlier I think you’d find this interesting
Replying to @aquariusacquah
can you try it with D3?
I will believe in the power of GPT-3 when it manages to understand instructions to create D3 code that works