#vega-lite #vega #format

vl-convert-rs

Library for converting Vega-Lite visualization specifications to Vega specifications

45 releases (10 stable)

new 1.4.0 Apr 15, 2024
1.3.0 Mar 13, 2024
1.2.4 Feb 27, 2024
1.2.0 Dec 2, 2023
0.5.0 Oct 29, 2022

#389 in Visualization

Download history 4/week @ 2024-01-06 24/week @ 2024-01-13 26/week @ 2024-01-20 117/week @ 2024-01-27 9/week @ 2024-02-10 49/week @ 2024-02-17 158/week @ 2024-02-24 43/week @ 2024-03-02 160/week @ 2024-03-09 30/week @ 2024-03-16 12/week @ 2024-03-23 38/week @ 2024-03-30 3/week @ 2024-04-06

107 downloads per month
Used in vl-convert

BSD-3-Clause

4MB
3.5K SLoC

Overview

This crate provides a self-contained Rust library for converting Vega-Lite visualization specifications into various formats. The conversions are performed using the Vega-Lite and Vega JavaScript libraries running in a v8 JavaScript runtime provided by the deno_runtime crate.

This crate is a dependency of the vl-convert CLI application crate and the vl-convert-python Python library.

Example

The VlConverter struct may be used to perform various Vega-Lite conversions. See the documentation of VlConverter for example usage.

JavaScript Vendoring and Code Generation

Note: The vl-convert-rs/vendor directory and vl-convert-rs/src/module_loader/import_map.rs file in this crate are generated by the internal vl-convert-vendor crate.

Dependencies

~246MB
~5M SLoC