-
Overview
-
Components
-
Resources
@msrvida/sanddance
Visually explore, understand, and present your data.
Installation
You will need to consider how to load the libraries that sanddance
depends on, based on your build & deployment scenario.
Installation via script tags
Load dependencies via <script>
tags in your HTML:
<script src="https://unpkg.com/vega-lib/build/vega.js" charset="utf-8"></script>
<script src="https://unpkg.com/deck.gl@~6.4/deckgl.min.js"></script>
<script src="TODO sanddance.js"></script>
A global variable named SandDance
will be available to you. In your JavaScript, call the use
function to pass the dependency libraries:
SandDance.use(vega, deck, deck, luma);
Installation via Node.js
Add these to the dependencies
section of your package.json
, then run npm install
:
"@deck.gl/core": "6.4",
"@deck.gl/layers": "6.4",
"@msrvida/sanddance": "^1",
"luma.gl": "6.4",
"vega-lib": "^4.3.0"
Import these in your JavaScript, then call the use()
function to pass the dependency libraries to SandDance.VegaDeckGl
:
import * as deck from '@deck.gl/core';
import * as layers from '@deck.gl/layers';
import * as luma from 'luma.gl';
import * as vega from 'vega-lib';
import * as SandDance from '@msrvida/sanddance';
SandDance.use(vega, deck, layers, luma);
For more information
Please visit the SandDance website.