0.0.10 • Published 5 years ago

@netbek/finch v0.0.10

Weekly downloads
1
License
AGPL-3.0
Repository
github
Last release
5 years ago

Finch

A Vega-Lite specification generator for JavaScript.

Examples

netbek.github.io/finch

Installation

  1. Install Finch using npm:

    npm i @netbek/finch
  2. If you use a module bundler, e.g. Webpack, then import the module:

    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:

    <!-- Dependencies -->
    <script src="/path/to/vega/build/vega.min.js"></script>
    <script src="/path/to/vega-lite/build/vega-lite.min.js"></script>
    <script src="/path/to/vega-embed/build/vega-embed.min.js"></script>
    <!-- Finch -->
    <script src="/path/to/@netbek/finch/umd/finch.min.js"></script>

Usage

<div id="vis"></div>
<script>
  var spec = finch.vl().spec;
  vegaEmbed('#vis', spec);
</script>

See the examples, in lieu of an API reference.

Credit

Resources

Development

License

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

0.0.10

5 years ago

0.0.9

6 years ago

0.0.8

6 years ago

0.0.7

6 years ago

0.0.6

6 years ago

0.0.5

6 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago