Convert VEGA to SVG
Turn VEGA files into SVG. The chart drawn by Vega as SVG with real 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 SVG.Vega draws the chart with real text, so labels stay text.
What you get
One SVG file of the chart, drawn by Vega from your spec. The labels, axis titles and other text are real text in the SVG, not outlines or pixels.
SVG is vector graphics in XML, so the chart stays sharp at any size.
What stays at its start
Signals keep their starting values. The chart is drawn once, with each signal at the value the spec gives it, so nothing in the SVG reacts to input.
Data from a URL
A spec that loads its data from a URL stops with
unsupported_elements. The data is not fetched, so the chart has nothing to draw from.Put the data inside the spec instead, so the spec holds everything it needs.
Afterwards
Once you have the SVG, compress SVG works on the result, and merge SVG joins several SVG files.
VEGA and SVG.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
SVG
Scalable vector graphics in XML. Logos, icons and diagrams that stay sharp at any size.
- Extensions
- .svg .svgz
- MIME type
- image
/svg +xml - Kind
- Images
In your code.The same VEGA to SVG conversion through the API, for your app or your agent.
$ cv convert report.vg.json report.svg$ cv convert report.vg.json report.svgQuestions.What people ask about VEGA to SVG.
Yes. Vega draws the chart with real text, so the labels are text and not shapes.
The spec loads its data from a URL. The data is not fetched, so the conversion stops.
No. Signals keep their starting values, so the chart is drawn once with those values.
This conversion has no options. It produces one SVG file from your spec.