This crate is a thin wrapper around the vl-convert-rs
crate that provides a command line interface for converting Vega-Lite visualization specifications to Vega visualization specifications.
Install vl-convert
using cargo with:
$ cargo install vl-convert
Display the documentation for the vl-convert
command
plain
$ ./vl-convert --help
```plain
vl-convert: A utility for converting Vega-Lite specifications into Vega specification
Usage: vl-convert [OPTIONS] --input-vegalite-file
Options:
-i, --input-vegalite-file
Convert a Vega-Lite specification file named in.vl.json
into a Vega specification file named out.vg.json
. Perform the conversion using version 5.5 of the Vega-Lite JavaScript library and pretty-print the resulting JSON.
plain
$ ./vl-convert -i ./in.vl.json -o ./out.vg.json --vl-version 5.5 --pretty