https://github.com/queryverse/vegalite.jl
Julia bindings to Vega-Lite
https://github.com/queryverse/vegalite.jl
Last synced: 7 months ago
JSON representation
Julia bindings to Vega-Lite
- Host: GitHub
- URL: https://github.com/queryverse/vegalite.jl
- Owner: queryverse
- License: other
- Created: 2016-03-08T21:31:09.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2024-06-28T12:56:07.000Z (almost 2 years ago)
- Last Synced: 2025-01-20T22:59:31.372Z (over 1 year ago)
- Language: Julia
- Size: 77.5 MB
- Stars: 269
- Watchers: 12
- Forks: 38
- Open Issues: 70
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# VegaLite.jl
_Julia bindings to Vega-Lite_
[](http://www.repostatus.org/#active)
[](https://www.queryverse.org/VegaLite.jl/stable/)
[](https://travis-ci.org/queryverse/VegaLite.jl)
[](https://ci.appveyor.com/project/queryverse/vegalite-jl/branch/master)
[](https://codecov.io/gh/queryverse/VegaLite.jl)
## Overview
[VegaLite.jl](https://github.com/queryverse/VegaLite.jl) is a plotting package for the [julia](https://julialang.org/) programming language. The package is based on [Vega-Lite](https://vega.github.io/vega-lite/), which extends a traditional [grammar of graphics](https://doi.org/10.1007/0-387-28695-0) API into a [grammar of interactive graphics](https://doi.org/10.1109/TVCG.2016.2599030).
Additionally, [VegaLite.jl](https://github.com/queryverse/VegaLite.jl) provides basic support for [Vega](https://vega.github.io/vega).
[VegaLite.jl](https://github.com/queryverse/VegaLite.jl) allows you to create a wide range of statistical plots. It exposes the full functionality of the underlying [Vega-Lite](https://vega.github.io/vega-lite/) and is at the same time tightly integrated into the julia ecosystem. Here is an example of a scatter plot:
```@example
using VegaLite, VegaDatasets
dataset("cars") |>
@vlplot(
:point,
x=:Horsepower,
y=:Miles_per_Gallon,
color=:Origin,
width=400,
height=400
)
```

## Installation
To install [VegaLite.jl](https://github.com/queryverse/VegaLite.jl), run the following command in the julia Pkg REPL-mode:
````julia
(v1.0) pkg> add VegaLite
````
## Documentation
The current documentation can be found [here](https://queryverse.github.io/VegaLite.jl/stable).
## Note for Jupyterlab Users
[VegaLite.jl](https://github.com/queryverse/VegaLite.jl) can be used in combination with many different front end clients including [JupyterLab](https://jupyterlab.readthedocs.io/en/stable/), [Pluto.jl](https://github.com/fonsp/Pluto.jl), and [Julia for VSCode](https://www.julia-vscode.org).
**Important:** [JupyterLab](https://jupyterlab.readthedocs.io/en/stable/) supplies its own version of [Vega-Lite](https://vega.github.io/vega-lite/) and *cannot* be kept in perfect sync with [VegaLite.jl](https://github.com/queryverse/VegaLite.jl). Formatting discrepancies **can** and **will** arise on occasion for [JupyterLab](https://jupyterlab.readthedocs.io/en/stable/) users. [VegaLite.jl](https://github.com/queryverse/VegaLite.jl) targets the latest available minor release of [Vega-Lite](https://vega.github.io/vega-lite/) which is also supported by [JupyterLab](https://jupyterlab.readthedocs.io/en/stable/).
## Developer Notes
JupyterLab support depends on Juperlab's built-in renderer; before updating to a new major version of vega-lite, check the [JupyterLab project](https://github.com/jupyterlab/jupyterlab/blob/master/packages/vega5-extension/package.json#L42) for the latest supported version of vega-lite.