Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upAdd support for Vega (not just Vega Lite) #945
Comments
|
Looking forward to this feature! Since vega-lite is converted into vega, it should be fairly straightforward? |
|
There's a similar issue #483 where the use of vega-embed is proposed. I'm willing to look into it and push a MVP PR by the end of next week to discuss it further if nobody has picked it. @tvst if you have any concerns or tips on how you would architecture that I'm all ears :). |
|
You could probably pass a Vega spec to the Vega-Lite view and it should almost work since the Vega-Lite component used Vega-Embed (https://github.com/streamlit/streamlit/blob/develop/frontend/src/components/elements/VegaLiteChart/VegaLiteChart.tsx#L268). |
|
@domoritz I dont have a working example right now, but when I tried this it did not work |
|
That's why I said "almost" ;-) But the code paths should be very similar if anyone is going to implement support for Vega. |
|
Hey @mmcguffi, I've got a minimal implementation on a branch (just copied and edited the VegaLite code path). Do you by any chance have some Vega spec you want me to test ? |
|
Hey @andfanilo -- sorry for the delay! This is the example I had previously try get get Streamlit to render: https://vega.github.io/editor/#/examples/vega/donut-chart |
See https://discuss.streamlit.io/t/support-for-vega-charts/671/2