open-index/open-npm huggingface dataset:
npm package: @krisdages/vega
Description: The Vega visualization grammar.
Author: UW Interactive Data Lab
Latest version: 5.17.0

# Vega: A Visualization Grammar <a href="https://vega.github.io/vega/"><img align="right" src="https://github.com/vega/logos/blob/master/assets/VG_Color@512.png?raw=true" height="38"></img></a>

<a href="https://vega.github.io/vega/examples">
<img src="https://vega.github.io/vega/assets/banner.png" alt="Vega Examples" width="900"></img>
</a>

**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.

For documentation, tutorials, and examples, see the [Vega website](https://vega.github.io/vega). For a description of changes between Vega 2 and later versions, please refer to the [Vega Porting Guide](https://vega.github.io/vega/docs/porting-guide/).

## Install

Use npm or yarn to install Vega for use in third-party libraries or applications.

Using npm:

```sh
npm install vega
```

or using yarn:

```sh
yarn add vega
```

If you would like to install the Vega command line utilities (`vg2pdf`, `vg2png`, `vg2svg`), see the [`vega-cli` package](https://github.com/vega/vega/tree/master/packages/vega-cli).

## Contributions, Development, and Support

Interested in contributing to Vega? Please see our [contribution and development guidelines](CONTRIBUTING.md), subject to our [code of conduct](CODE_OF_CONDUCT.md).

Looking for support, or interested in sharing examples and tips? Post to the [Vega discussion forum](https://groups.google.com/forum/#!forum/vega-js) or join the [Vega slack organization](https://bit.ly/join-vega-slack-2020)!

Read about future plans in [our roadmap](https://docs.google.com/document/d/1fscSxSJtfkd1m027r1ONCc7O8RdZp1oGABwca2pgV_E/edit#).

## Package Development

This package builds the bundled Vega library files and the JSON schema. It also includes a high-level test suite. If performing local development:

- Run `yarn build` to build both browser and node.js bundles.
- Run `yarn test` to run the test suite.
npm package: @krisdages/vega-crossfilter
Description: Indexed cross-filtering for Vega dataflows.
Author: Jeffrey Heer
Latest version: 4.0.5

# vega-crossfilter

Indexed cross-filtering for Vega dataflows.

This package provides the following Vega data transforms:

- [**CrossFilter**](https://vega.github.io/vega/docs/transforms/crossfilter/) [&lt;&gt;](https://github.com/vega/vega/blob/master/packages/vega-crossfilter/src/CrossFilter.js "Source")
- [**ResolveFilter**](https://vega.github.io/vega/docs/transforms/resolvefilter/) [&lt;&gt;](https://github.com/vega/vega/blob/master/packages/vega-crossfilter/src/ResolveFilter.js "Source")
npm package: @krisdages/vega-dataflow
Description: Reactive dataflow processing.
Author: Jeffrey Heer
Latest version: 5.7.3

# vega-dataflow

Reactive dataflow processing.

Defines a reactive dataflow graph that can process both scalar values and streaming relational data. A central `Dataflow` instance manages and schedules a collection of `Operator` instances, each of which is a node in a dataflow graph. Each operator maintains a local state *value*, and may also process streaming data objects (or *tuples*) passing through. Operators may depend on a set of named `Parameters`, which can either be fixed values or live references to other operator values.

Upon modifications to operator parameters or input data, changes are propagated through the graph in topological order. `Pulse` objects propagate from operators to their dependencies, and carry queues of added, removed and/or modified tuples.

This module contains only the core reactive dataflow processing engine. Other modules provide a library of `Operator` types for data stream query processing, including data generation, sampling, filtering, binning, aggregation, cross-stream lookup, visual encoding, and spatial layout.

For more information about data stream transforms, see the [Vega transform documentation](https://vega.github.io/vega/docs/transforms/).
npm package: @krisdages/vega-encode
Description: Visual encoding transforms for Vega dataflows.
Author: Jeffrey Heer
Latest version: 4.8.3

# vega-encode

Visual encoding transforms for Vega dataflows.

This package provides the following Vega data transforms:

- [**LinkPath**](https://vega.github.io/vega/docs/transforms/linkpath/) [&lt;&gt;](https://github.com/vega/vega/blob/master/packages/vega-encode/src/LinkPath.js "Source")
- [**Pie**](https://vega.github.io/vega/docs/transforms/pie/) [&lt;&gt;](https://github.com/vega/vega/blob/master/packages/vega-encode/src/Pie.js "Source")
- [**Stack**](https://vega.github.io/vega/docs/transforms/stack/) [&lt;&gt;](https://github.com/vega/vega/blob/master/packages/vega-encode/src/Stack.js "Source")

And provides the following internal transforms:

- **AxisTicks** [&lt;&gt;](https://github.com/vega/vega/blob/master/packages/vega-encode/src/AxisTicks.js "Source")
- **DataJoin** [&lt;&gt;](https://github.com/vega/vega/blob/master/packages/vega-encode/src/DataJoin.js "Source")
- **Encode** [&lt;&gt;](https://github.com/vega/vega/blob/master/packages/vega-encode/src/Encode.js "Source")
- **LegendEntries** [&lt;&gt;](https://github.com/vega/vega/blob/master/packages/vega-encode/src/LegendEntries.js "Source")
- **Scale** [&lt;&gt;](https://github.com/vega/vega/blob/master/packages/vega-encode/src/Scale.js "Source")
npm package: @krisdages/vega-force
Description: Force simulation transform for Vega dataflows.
Author: Jeffrey Heer
Latest version: 4.0.7

# vega-force

Force simulation transform for Vega dataflows.

This package provides the following Vega data transform:

- [**Force**](https://vega.github.io/vega/docs/transforms/force/) [&lt;&gt;](https://github.com/vega/vega/blob/master/packages/vega-force/src/Force.js "Source")
npm package: @krisdages/vega-geo
Description: Geographic data transforms for Vega dataflows.
Author: Jeffrey Heer
Latest version: 4.3.7

# vega-geo

Geographic data transforms for Vega dataflows.

This package provides the following Vega data transforms:

- [**Contour**](https://vega.github.io/vega/docs/transforms/contour/) [&lt;&gt;](https://github.com/vega/vega/blob/master/packages/vega-geo/src/Contour.js "Source") _deprecated!_
- [**GeoJSON**](https://vega.github.io/vega/docs/transforms/geojson/) [&lt;&gt;](https://github.com/vega/vega/blob/master/packages/vega-geo/src/GeoJSON.js "Source")
- [**GeoPath**](https://vega.github.io/vega/docs/transforms/geopath/) [&lt;&gt;](https://github.com/vega/vega/blob/master/packages/vega-geo/src/GeoPath.js "Source")
- [**GeoPoint**](https://vega.github.io/vega/docs/transforms/geopoint/) [&lt;&gt;](https://github.com/vega/vega/blob/master/packages/vega-geo/src/GeoPoint.js "Source")
- [**GeoShape**](https://vega.github.io/vega/docs/transforms/geoshape/) [&lt;&gt;](https://github.com/vega/vega/blob/master/packages/vega-geo/src/GeoShape.js "Source")
- [**Graticule**](https://vega.github.io/vega/docs/transforms/graticule/) [&lt;&gt;](https://github.com/vega/vega/blob/master/packages/vega-geo/src/Graticule.js "Source")
- [**Heatmap**](https://vega.github.io/vega/docs/transforms/heatmap/) [&lt;&gt;](https://github.com/vega/vega/blob/master/packages/vega-geo/src/Heatmap.js "Source")
- [**Isocontour**](https://vega.github.io/vega/docs/transforms/isocontour/) [&lt;&gt;](https://github.com/vega/vega/blob/master/packages/vega-geo/src/Isocontour.js "Source")
- [**KDE2D**](https://vega.github.io/vega/docs/transforms/kde2d/) [&lt;&gt;](https://github.com/vega/vega/blob/master/packages/vega-geo/src/KDE2D.js "Source")

And provides the following internal transform:

- **Projection** [&lt;&gt;](https://github.com/vega/vega/blob/master/packages/vega-geo/src/Projection.js "Source")

For more information about cartographic projections, see the [Vega Projections documentation](https://vega.github.io/vega/docs/projections/).
npm package: @krisdages/vega-hierarchy
Description: Hierarchical layout transforms for Vega dataflows.
Author: Jeffrey Heer
Latest version: 4.0.9

# vega-hierarchy

Hierarchical layout transforms for Vega dataflows.

This pacakge provides the following Vega data transforms:

- [**Nest**](https://vega.github.io/vega/docs/transforms/nest/) [&lt;&gt;](https://github.com/vega/vega/blob/master/packages/vega-hierarchy/src/Nest.js "Source")
- [**Pack**](https://vega.github.io/vega/docs/transforms/pack/) [&lt;&gt;](https://github.com/vega/vega/blob/master/packages/vega-hierarchy/src/Pack.js "Source")
- [**Partition**](https://vega.github.io/vega/docs/transforms/partition/) [&lt;&gt;](https://github.com/vega/vega/blob/master/packages/vega-hierarchy/src/Partition.js "Source")
- [**Stratify**](https://vega.github.io/vega/docs/transforms/stratify/) [&lt;&gt;](https://github.com/vega/vega/blob/master/packages/vega-hierarchy/src/Stratify.js "Source")
- [**Tree**](https://vega.github.io/vega/docs/transforms/tree/) [&lt;&gt;](https://github.com/vega/vega/blob/master/packages/vega-hierarchy/src/Tree.js "Source")
- [**Treemap**](https://vega.github.io/vega/docs/transforms/treemap/) [&lt;&gt;](https://github.com/vega/vega/blob/master/packages/vega-hierarchy/src/Treemap.js "Source")
- [**TreeLinks**](https://vega.github.io/vega/docs/transforms/treelinks/) [&lt;&gt;](https://github.com/vega/vega/blob/master/packages/vega-hierarchy/src/TreeLinks.js "Source")
npm package: @krisdages/vega-label
Description: Label layout transform for Vega dataflows.
Author: UW Interactive Data Lab
Latest version: 1.0.0

# vega-label

Label layout algorithm for Vega dataflows.

This package provides the following Vega data transform:

- [**Label**](https://vega.github.io/vega/docs/transforms/label/) [&lt;&gt;](https://github.com/vega/vega/blob/master/packages/vega-label/src/Label.js "Source")
npm package: @krisdages/vega-parser
Description: Parse Vega specifications to runtime dataflows.
Author: Jeffrey Heer
Latest version: 6.1.0

# vega-parser

Parse Vega specifications to runtime dataflow descriptions.

## API Reference

<a name="parse" href="#parse">#</a>
vega.<b>parse</b>(<i>specification</i>[, <i>config</i>])
[<>](https://github.com/vega/vega/blob/master/packages/vega-parser/src/parse.js "Source")

Parses a Vega JSON *specification* as input and produces a reactive dataflow graph description for a visualization. The output description uses the format of the [vega-runtime](https://github.com/vega/vega/tree/master/packages/vega-runtime) module. To create a visualization, use the runtime dataflow description as the input to a Vega [View](https://github.com/vega/vega/tree/master/packages/vega-view) instance.

The optional *config* object provides visual encoding defaults for marks, scales, axes and legends. Different configuration settings can be used to change choices of layout, color, type faces, font sizes and more to realize different chart themes. For more, see the configuration documentation below or view the source code defining Vega's [default configuration](https://github.com/vega/vega/blob/master/packages/vega-parser/src/config.js).

In addition to passing configuration options to this [parse](#parse) method, Vega JSON specifications may also include a top-level `"config"` block specifying configuration properties. Configuration options defined within a Vega JSON file take precedence over those provided to the parse method.

## Configuration

The Vega parser accepts a configuration file that defines default settings for a variety of visual encoding choices. Different configuration files can be used to "theme" charts with a customized look and feel. A configuration file is simply a JavaScript object with a set of named properties, grouped by type.

For more information regarding the supported configuration options, please see the [Vega config documentation](https://vega.github.io/vega/docs/config/).
npm package: @krisdages/vega-regression
Description: Regression transform for Vega dataflows.
Author: Jeffrey Heer
Latest version: 1.0.9

# vega-regression

Regression model fitting for Vega dataflows.

This package provides the following Vega data transforms:

- [**Loess**](https://vega.github.io/vega/docs/transforms/loess/) [&lt;&gt;](https://github.com/vega/vega/blob/master/packages/vega-regression/src/Loess.js "Source")
- [**Regression**](https://vega.github.io/vega/docs/transforms/regression/) [&lt;&gt;](https://github.com/vega/vega/blob/master/packages/vega-regression/src/Regression.js "Source")
npm package: @krisdages/vega-runtime
Description: Runtime support for Vega dataflows.
Author: Jeffrey Heer
Latest version: 6.1.3

# vega-runtime

Runtime support for Vega dataflows. Parses a runtime dataflow description produced by [vega-parser](https://github.com/vega/vega/tree/master/packages/vega-parser) to instantiate a live [vega-dataflow](https://github.com/vega/vega/tree/master/packages/vega-dataflow) instance.
npm package: @krisdages/vega-view
Description: View component and transforms for Vega visualizations.
Author: Jeffrey Heer
Latest version: 5.9.0

# vega-view

View component for Vega visualizations. A **View** instantiates an underlying dataflow graph and provides a component for rendering and interacting with a visualization. When initialized with a container DOM element, the View adds a Canvas or SVG-based visualization to a web page. Alternatively, a View can be used either client-side or server-side to export static SVG or PNG (Canvas) images.

For the API reference, see the [Vega View API documentation](https://vega.github.io/vega/docs/api/view/).
npm package: @krisdages/vega-view-transforms
Description: View-specific transforms for Vega dataflows.
Author: Jeffrey Heer
Latest version: 4.5.8

# vega-view-transforms

View-specific transforms for Vega dataflows.

This package provides the following Vega data transform:

- [**Identifier**](https://vega.github.io/vega/docs/transforms/identifier/) [&lt;&gt;](https://github.com/vega/vega/blob/master/packages/vega-view-transforms/src/Identifier.js "Source")

And provides the following internal transforms:

- **Bound** [&lt;&gt;](https://github.com/vega/vega/blob/master/packages/vega-view-transforms/src/Bound.js "Source")
- **Mark** [&lt;&gt;](https://github.com/vega/vega/blob/master/packages/vega-view-transforms/src/Mark.js "Source")
- **Overlap** [&lt;&gt;](https://github.com/vega/vega/blob/master/packages/vega-view-transforms/src/Overlap.js "Source")
- **Render** [&lt;&gt;](https://github.com/vega/vega/blob/master/packages/vega-view-transforms/src/Render.js "Source")
- **ViewLayout** [&lt;&gt;](https://github.com/vega/vega/blob/master/packages/vega-view-transforms/src/ViewLayout.js "Source")