4.0.2 • Published 11 months ago

@msrvida/sanddance-react v4.0.2

Weekly downloads
210
License
MIT
Repository
github
Last release
11 months ago

@msrvida/sanddance-react

Visually explore, understand, and present your data.

sanddance-animation

Demo - API Reference

Installation

Add these to the dependencies section of your package.json, then run npm install:

"@msrvida/sanddance-react": "^4",
"react": "^17",
"react-dom": "^17",
"vega": "^5.25"

Import these in your JavaScript:

import * as vega from 'vega';
import * as React from 'react';
import * as ReactDOM from 'react-dom';
import * as SandDanceReact from '@msrvida/sanddance-react';

SandDanceReact.use(React, ReactDOM, vega);

const data = [
    { a: 1, b: "c1" },
    { a: 1, b: "c2" },
    { a: 2, b: "c3" },
    { a: 3, b: "c4" }
];

const insight = {
    columns: {
        x: "a",
        color: "b",
    },
    scheme: "set1",
    chart: "barchartV",
    view: "2d",
    size: {
        height: 800,
        width: 800
    }
}

ReactDOM.render(
    <SandDanceReact.Viewer
        data={data}
        insight={insight}
    />,
    document.getElementById('app')
);

Versions

Breaking changes in v4

  • renamed SandDanceReact to Viewer
  • removed deck.gl dependency

For more information

Please visit the SandDance website.

4.0.2

11 months ago

4.0.1

1 year ago

4.0.0

2 years ago

4.0.0-beta

2 years ago

4.0.0-beta.0

2 years ago

3.0.1

4 years ago

3.0.0

4 years ago

3.0.0-beta.2

4 years ago

2.0.0

4 years ago

1.1.7

5 years ago

1.1.6

5 years ago

1.1.5

5 years ago

1.1.4

5 years ago

1.1.1

5 years ago

1.1.0

5 years ago

1.0.7

5 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago