#visualization #vega #vega-lite #specification #conversion #converting #format

vl-convert-rs

Library for converting Vega-Lite visualization specifications to Vega specifications

51 releases (15 stable)

1.7.0 Oct 4, 2024
1.6.1 Aug 24, 2024
1.5.1 Jul 27, 2024
1.3.0 Mar 13, 2024
0.5.0 Oct 29, 2022

#5 in #formats

Download history 137/week @ 2024-11-08 6/week @ 2024-11-15 7/week @ 2024-11-22 275/week @ 2024-11-29 737/week @ 2024-12-06 185/week @ 2024-12-13 13/week @ 2024-12-20 8/week @ 2024-12-27 39/week @ 2025-01-03 54/week @ 2025-01-10 3/week @ 2025-01-17 50/week @ 2025-01-24 21/week @ 2025-01-31 15/week @ 2025-02-07 35/week @ 2025-02-14 6/week @ 2025-02-21

82 downloads per month
Used in vl-convert

BSD-3-Clause

4.5MB
3K 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

~217MB
~4.5M SLoC