Convert VEGA to PDF

Turn VEGA files into PDF. The chart drawn by Vega on one page cut to its size, with vector marks and selectable 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 single PDF page.The chart is drawn on one page cut to its size, with vector marks and text you can select.

  1. What you get

    One PDF file with the chart drawn by Vega. The page is cut to the size of the chart, so there is no extra margin around it.

    The marks are vector shapes, and the text in the chart stays selectable.

  2. What stays as written

    Signals keep their starting values. The PDF shows the chart as it looks before any interaction changes a signal.

  3. When it fails

    A spec that loads its data from a URL stops with unsupported_elements, because the data is not fetched. Put the data inside the spec instead of pointing to it.

VEGA and PDF.What each format is.

The formats

From · VEGA

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
To · PDF

PDF

Fixed-layout pages that look the same everywhere. The exchange format for anything that will be printed or signed.

Extensions
.pdf
MIME type
application/pdf
Kind
Documents

In your code.The same VEGA to PDF conversion through the API, for your app or your agent.

terminal
$ cv convert report.vg.json report.pdf
$ cv convert report.vg.json report.pdf

Questions.What people ask about VEGA to PDF.

01OF 04

The marks are vector shapes, and the text is selectable.

No. The conversion stops with unsupported_elements, since the data is not fetched.

They keep their starting values. The chart is drawn in that state.

The page is cut to the size of the chart, and the whole chart sits on one page.

More conversions.Other ways in and out of VEGA and PDF.