#vega-lite #visualization #vega #format

vl-convert-rs

Library for converting Vega-Lite visualization specifications to Vega specifications

46 releases (11 stable)

1.5.0 Jun 19, 2024
1.3.0 Mar 13, 2024
1.2.0 Dec 2, 2023
1.1.0 Nov 11, 2023
0.5.0 Oct 29, 2022

#7 in #vega

Download history 13/week @ 2024-03-27 34/week @ 2024-04-03 134/week @ 2024-04-10 979/week @ 2024-04-17 61/week @ 2024-04-24 47/week @ 2024-05-01 12/week @ 2024-05-08 1/week @ 2024-05-15 2/week @ 2024-05-22 1/week @ 2024-05-29 1/week @ 2024-06-05 4/week @ 2024-06-12 208/week @ 2024-06-19 9/week @ 2024-06-26 45/week @ 2024-07-03

262 downloads per month
Used in vl-convert

BSD-3-Clause

4.5MB
3K SLoC

Rust 3K SLoC // 0.0% comments JavaScript 308 SLoC // 0.2% comments

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

~211MB
~4.5M SLoC