Repository navigation
vega-lite -> altair/vl-api/ggplot2/D3 transpiler #9928
eytanadar
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
I'm not sure how useful this will be to others.... For a research project we're working on I built a vega-lite (JSON) to Altair/ vega-lite-api/ggplot2/D3 transpiler.
This can take you existing vega-lite json and transform it to javascript/python/R as needed. Yes, you can do it with an LLM, but this is direct, fast, and costs nothing. It works very well for vega-lite-api and altair (for obvious reasons). It works ok for D3 and ggplot2.
There's a showcase demonstrating the various transpiles here: https://cond.org/vl2x/showcase/ (which might be useful as a reference even if you don't use the libraries). The github is here: https://github.com/datamazelab/vl2x
Mostly agent-generated so caveat emptor (though I have been knocking out bugs)
All reactions