#vega-lite #vega #format

vl-convert-rs

Library for converting Vega-Lite visualization specifications to Vega specifications

45 releases (10 stable)

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

#396 in Visualization

Download history 48/week @ 2024-01-22 91/week @ 2024-01-29 5/week @ 2024-02-05 4/week @ 2024-02-12 54/week @ 2024-02-19 175/week @ 2024-02-26 25/week @ 2024-03-04 169/week @ 2024-03-11 24/week @ 2024-03-18 5/week @ 2024-03-25 41/week @ 2024-04-01 8/week @ 2024-04-08 1109/week @ 2024-04-15 2/week @ 2024-04-22 102/week @ 2024-04-29 16/week @ 2024-05-06

1,229 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

~251MB
~5M SLoC