# vega-lib

> Include Vega in projects using minimal dependencies.

Latest version **4.4.0** (published 2018-12-05) · BSD-3-Clause license · 0 weekly downloads

## Install

```sh
npm install vega-lib
pnpm add vega-lib
yarn add vega-lib
bun add vega-lib
```

## Health

**Score 20/100 (F)** — status: abandoned.

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 4.4.0 |
| Published | 2018-12-05 |
| First published | 2018-01-25 |
| Weekly downloads | 0 |
| License | BSD-3-Clause |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 22 |
| Unpacked size | 2.7 MB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 21 |
| Author | UW Interactive Data Lab |
| Maintainers | jheer, nyurik |
| Keywords | vega, visualization, interaction, dataflow, library, data, d3 |

## Links

- npm: https://www.npmjs.com/package/vega-lib
- Repository: https://github.com/vega/vega-lib
- npm.io page: https://npm.io/package/vega-lib

## Dependencies (22)

- [vega-geo](https://npm.io/package/vega-geo.md) ^3.1.1
- [vega-util](https://npm.io/package/vega-util.md) ^1.7.0
- [vega-view](https://npm.io/package/vega-view.md) ^3.4.1
- [vega-force](https://npm.io/package/vega-force.md) ^3.0.0
- [vega-scale](https://npm.io/package/vega-scale.md) ^2.5.1
- [vega-encode](https://npm.io/package/vega-encode.md) ^3.2.2
- [vega-loader](https://npm.io/package/vega-loader.md) ^3.1.0
- [vega-parser](https://npm.io/package/vega-parser.md) ^3.9.0
- [vega-runtime](https://npm.io/package/vega-runtime.md) ^3.2.0
- [vega-typings](https://npm.io/package/vega-typings.md) *
- [vega-voronoi](https://npm.io/package/vega-voronoi.md) ^3.0.0
- [vega-dataflow](https://npm.io/package/vega-dataflow.md) ^4.1.0
- [vega-hierarchy](https://npm.io/package/vega-hierarchy.md) ^3.1.0
- [vega-wordcloud](https://npm.io/package/vega-wordcloud.md) ^3.0.0
- [vega-expression](https://npm.io/package/vega-expression.md) ^2.4.0
- [vega-projection](https://npm.io/package/vega-projection.md) ^1.2.0
- [vega-scenegraph](https://npm.io/package/vega-scenegraph.md) ^3.2.3
- [vega-statistics](https://npm.io/package/vega-statistics.md) ^1.2.3
- [vega-transforms](https://npm.io/package/vega-transforms.md) ^2.3.1
- [vega-crossfilter](https://npm.io/package/vega-crossfilter.md) ^3.0.1
- [vega-event-selector](https://npm.io/package/vega-event-selector.md) ^2.0.0
- [vega-view-transforms](https://npm.io/package/vega-view-transforms.md) ^2.0.3

## Alternatives

- [d3-force-3d](https://npm.io/package/d3-force-3d.md) — 1.0M weekly downloads
- [ng2-charts](https://npm.io/package/ng2-charts.md) — 486.8K weekly downloads
- [@arcgis/core](https://npm.io/package/@arcgis/core.md) — 257.8K weekly downloads
- [react-sparklines](https://npm.io/package/react-sparklines.md) — 249.3K weekly downloads
- [react-native-gifted-charts](https://npm.io/package/react-native-gifted-charts.md) — 182.3K weekly downloads

## Recent versions

- 4.4.0 (latest) — 2018-12-05
- 4.3.0 — 2018-10-11
- 4.2.0 — 2018-07-17
- 4.1.0 — 2018-07-10
- 4.0.0 — 2018-07-03
- 4.0.0-rc.3 — 2018-06-18
- 4.0.0-rc.2 — 2018-05-25
- 4.0.0-rc.1 — 2018-05-07
- 3.3.1 — 2018-04-22
- 3.3.0 — 2018-04-20
- 3.2.1 — 2018-03-06
- 3.2.0 — 2018-03-05
- 3.1.0 — 2018-02-19
- 3.0.10 — 2018-01-25
- 3.0.10-beta — 2018-01-25
- … 2 more at https://npm.io/package/vega-lib/versions

## README

# vega-lib

Include Vega in client-side projects using minimal dependencies.

**Vega** is a _visualization grammar_, a declarative format for creating, saving, and sharing interactive visualization designs. With Vega you can describe data visualizations in a JSON format, and generate interactive views using either HTML5 Canvas or SVG.

The **vega-lib** repository packages up the Vega codebase for use in client-side projects (for example, using [Webpack](https://webpack.js.org/) or [Browserify](http://browserify.org/)) with minimal server-side dependencies. We exclude [node-canvas](https://github.com/Automattic/node-canvas) dependencies to remove compilation steps and associated overhead.

For more about Vega, including support for server-side rendering, see the main [Vega repository](https://github.com/vega/vega) and [Vega website](https://vega.github.io/vega).

## Basic Setup and Testing

For a basic setup allowing you to build Vega and run examples:

- Run `git clone git@github.com:vega/vega-lib.git` to clone this repository.
- Run `yarn` to install dependencies. If you don't have yarn installed, see https://yarnpkg.com/en/docs/install.
- Once installation is complete, use `yarn test` to run tests and `yarn run build` to build output files.

This repository includes web-based demos within the `test` folder. To run these, launch a local web server in the top-level directory for the repo and point your browser to the right place (e.g., `http://localhost:8080/test/`).

Need help launching a local web server? Run `npm install -g http-server` to install a node.js-based web server, then run `http-server -p 8080` to serve files from the current directory on port 8080.

---
_Source: https://npm.io/package/vega-lib · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
