Skip to content
A JavaScript API for Vega-Lite.
JavaScript
Branch: master
Clone or download
dependabot-preview and jheer Bump vega from 5.5.3 to 5.6.0
Bumps [vega](https://github.com/vega/vega) from 5.5.3 to 5.6.0.
- [Release notes](https://github.com/vega/vega/releases)
- [Commits](vega/vega@v5.5.3...v5.6.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Latest commit b80e92e Sep 16, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
api Add type-switch support to doc generator. Aug 19, 2019
docs
static v0.0.15. Expose registered Vega/VL instances. Apr 19, 2019
test v0.0.15. Expose registered Vega/VL instances. Apr 19, 2019
.eslintrc Initial commit. Mar 22, 2019
.gitignore Add generated documentation. Aug 17, 2019
.npmignore Add generated documentation. Aug 17, 2019
LICENSE Initial commit. Mar 22, 2019
README.md Adjust readme markup. Aug 19, 2019
package.json Bump eslint dependency. Aug 19, 2019
rollup.js Register vl schema as external dep. Aug 14, 2019
yarn.lock Bump vega from 5.5.3 to 5.6.0 Sep 16, 2019

README.md

Vega-Lite API

Gallery Image

A JavaScript API for creating Vega-Lite JSON specifications. Vega-Lite is a high-level grammar for visual analysis that generates complete Vega specifications.

With the Vega-Lite API, you can write JavaScript code like this:

vl.markBar().data('data/movies.json').encode(
  vl.x().fieldQ('IMDB_Rating').bin(true),
  vl.y().count()
)

To produce Vega-Lite JSON like this:

{
  "mark": "bar",
  "data": {"url": "data/movies.json"},
  "encoding": {
    "x": {
      "bin": true,
      "field": "IMDB_Rating",
      "type": "quantitative"
    },
    "y": {
      "aggregate": "count",
      "type": "quantitative"
    }
  }
}

To get started with the Vega-Lite API, see these Observable notebooks:

Build Instructions

For a basic setup allowing you to build the API and run tests:

  • Clone https://github.com/vega/vega-lite-api.
  • Run yarn to install dependencies for all packages. If you don't have yarn installed, see https://yarnpkg.com/en/docs/install.
  • Once installation is complete, run yarn build to build the API generator and generate API source code in the src directory. Run yarn test to additionally run the test suite.

API Reference

See the Vega-Lite JavaScript API Reference.

You can’t perform that action at this time.