Render Vega-Lite charts in Markdown (```vega-lite code blocks) #212935
Unanswered
PresPad
asked this question in
Other Feature Feedback, Questions, & Ideas
Replies: 1 comment
|
💬 Your Product Feedback Has Been Submitted 🎉 Thank you for taking the time to share your insights with us! Your feedback is invaluable as we build a better GitHub experience for all our users. Here's what you can expect moving forward ⏩
Where to look to see what's shipping 👀
What you can do in the meantime 💻
As a member of the GitHub community, your participation is essential. While we can't promise that every suggestion will be implemented, we want to emphasize that your feedback is instrumental in guiding our decisions and priorities. Thank you once again for your contribution to making GitHub even better! We're grateful for your ongoing support and collaboration in shaping the future of our platform. ⭐ |
0 replies
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.
🏷️ Discussion Type
Product Feedback
💬 Feature/Topic Area
Other
Body
What we're trying to do
Our team keeps documentation in Markdown on GitHub and uses Vega-Lite for charts. GitHub renders
mermaid,geojson,topojsonandstlcode blocks, but avega-liteblock shows up as raw JSON.What we'd like
Render
```vega-lite(and ideally```vega) fenced code blocks as charts in Markdown files, issues, pull requests, discussions and wikis, the same way Mermaid blocks are rendered today.Why Vega-Lite
xychart-beta), quadrant and Sankey. They don't cover scatter plots, heat maps, stacked or grouped bars, faceted charts, or charts that load data from a CSV or JSON file in the repo.Current workaround
A GitHub Action that renders each block to an SVG and commits the image next to the Markdown. It works, but it adds a build step and generated files to the repo, and the charts lose Vega-Lite's interactivity (tooltips, zoom, selection).
Example
Today this shows as a JSON code block. We'd like it to show as a bar chart.
All reactions