Convert VEGA to PNG
Turn VEGA files into PNG. The chart drawn by Vega at twice its size for sharp lines and text.
Converted in an isolated sandbox on our serversDeleted after 24 hours
Drop VEGA files on the dialor turn it to pick what to do
A Vega chart as a sharp PNG.Vega draws the chart at twice its size, so lines and text stay crisp.
What you get
One PNG of the chart as Vega draws it. The image is twice the size of the chart, which keeps lines and text sharp.
PNG is a lossless image format with an alpha channel, so edges stay clean in the image.
What stays as it starts
Signals keep their starting values. The chart is drawn from the state the spec describes, and nothing in it responds to input.
When it fails
A spec that loads its data from a URL stops with
unsupported_elements. The data is not fetched, so a URL in the spec is never read.
VEGA and PNG.What each format is.
The formats
Vega Chart
A chart described as JSON in the Vega grammar, with its data, scales, axes, marks and signals spelled out.
- Extensions
- .vg.json .vega
- MIME type
- application
/vnd .vega .v6 +json - Kind
- Text and data
PNG
Lossless raster images with an alpha channel. Screenshots, icons and graphics with sharp edges.
- Extensions
- .png
- MIME type
- image
/png - Kind
- Images
In your code.The same VEGA to PNG conversion through the API, for your app or your agent.
$ cv convert report.vg.json report.png$ cv convert report.vg.json report.pngQuestions.What people ask about VEGA to PNG.
The spec loads its data from a URL. The data is not fetched, so the conversion stops with this code.
Signals keep their starting values. The chart is drawn with those values.
It is twice the size of the chart, which keeps lines and text sharp.
See every VEGA conversion for the other formats a Vega chart can become.