An open API service indexing awesome lists of open source software.

https://github.com/netbek/finch

A Vega-Lite specification generator for JavaScript
https://github.com/netbek/finch

dataviz javascript vega vega-lite vega-lite-spec

Last synced: 6 months ago
JSON representation

A Vega-Lite specification generator for JavaScript

Awesome Lists containing this project

README

          

# Finch

A Vega-Lite specification generator for JavaScript.

## Examples

[netbek.github.io/finch](https://netbek.github.io/finch)

## Installation

1. Install Finch using [`npm`](https://www.npmjs.com/):

```shell
npm i @netbek/finch
```

2. If you use a module bundler, e.g. Webpack, then import the module:

```javascript
import {vl} from '@netbek/finch';
```

If you don't use a module bundler, then add the script to your HTML document to export the `finch` global variable:

```html






```

## Usage

```html

var spec = finch.vl().spec;
vegaEmbed('#vis', spec);

```

See [the examples](https://netbek.github.io/finch), in lieu of an API reference.

## Credit

* [To-Vega](https://github.com/gjmcn/to-vega) - Primary inspiration for API. Finch aims to make view composition easier, and provide macros for composite plots, e.g. pair plot (seaborn).
* [Altair](https://github.com/altair-viz/altair)
* [seaborn](https://github.com/mwaskom/seaborn)
* [Financial Times Visual Vocabulary](https://github.com/ft-interactive/chart-doctor/tree/master/visual-vocabulary) - Inspiration for organisation of examples.
* [Tufte CSS](https://github.com/edwardtufte/tufte-css)

## Resources

* [Vega-Lite: specifications](https://vega.github.io/vega-lite/docs/spec.html)
* [Vega-Lite: theme configuration](https://vega.github.io/vega-lite/docs/config.html)

## Development

* [#2280 JavaScript Syntax for Vega-Lite (similar to Altair)](https://github.com/vega/vega-lite/issues/2280)

## License

Copyright (c) 2018 Hein Bekker. Licensed under the GNU Affero General Public License, version 3.