Convert VEGALITE to SVG

Turn VEGALITE files into SVG. The chart drawn by Vega-Lite as SVG with real text.

Converted in an isolated sandbox on our serversDeleted after 24 hours

Drop VEGALITE files on the dialor turn it to pick what to do

A Vega-Lite chart as an SVG picture.The chart is drawn by Vega-Lite and saved as one SVG file.

  1. What you get

    An SVG of the chart, drawn by Vega-Lite from your spec. The text in the chart, such as titles, axis labels and legends, is real text, not outlines.

    The result is one file. Because SVG is vector, the chart stays sharp at any size.

  2. Data from a URL

    The data has to be inside the spec. A spec that loads its data from a URL stops with unsupported_elements, since the data is not fetched.

    To convert such a chart, put the values into the spec itself and convert it again.

VEGALITE and SVG.What each format is.

The formats

From · VEGALITE

Vega-Lite Chart

A chart described as JSON in the Vega-Lite grammar, the format Altair and many notebooks and agents write.

Extensions
.vl.json .vegalite
MIME type
application/vnd.vegalite.v6+json
Kind
Text and data
To · SVG

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 VEGALITE to SVG conversion through the API, for your app or your agent.

terminal
$ cv convert report.vl.json report.svg
$ cv convert report.vl.json report.svg

Questions.What people ask about VEGALITE to SVG.

01OF 04

Yes. The chart is drawn with real text, not shapes that look like letters.

No. The conversion stops with unsupported_elements, because the data is not fetched. Put the data inside the spec instead.

A chart described as JSON in the Vega-Lite grammar, the format Altair and many notebooks and agents write. Files end in vl.json or vegalite.

One. Each chart becomes a single SVG. For more on the format, see every SVG conversion.

More conversions.Other ways in and out of VEGALITE and SVG.