Convert VEGALITE to PDF
Turn VEGALITE files into PDF. The chart drawn by Vega-Lite 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 VEGALITE files on the dialor turn it to pick what to do
A Vega-Lite chart as a PDF page.Vector marks and selectable text, on one page cut to the chart.
What you get
A PDF with one page, cut to the size of the chart. Vega-Lite draws the chart from your spec, and the page holds the result.
The marks are vector shapes, and the text in the chart is selectable. The file is one PDF for one spec.
Data that loads from a URL
The data has to be inside the spec. A spec that loads its data from a URL stops with
unsupported_elements, because the data is not fetched.If your spec points to a URL, put the values into the spec first and convert it again.
VEGALITE and PDF.What each format is.
The formats
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
Fixed-layout pages that look the same everywhere. The exchange format for anything that will be printed or signed.
- Extensions
- MIME type
- application
/pdf - Kind
- Documents
In your code.The same VEGALITE to PDF conversion through the API, for your app or your agent.
$ cv convert report.vl.json report.pdf$ cv convert report.vl.json report.pdfQuestions.What people ask about VEGALITE to PDF.
Yes. The text in the PDF is selectable, and the marks are vector shapes.
One. The page is cut to the size of the chart.
The spec loads its data from a URL. The data is not fetched, so the conversion stops.
Yes. VEGALITE is the format Altair and many notebooks and agents write, and it converts the same way. Keep the data inside the spec.