polywag

0.2.0 • Public • Published

accessibility text

POLYWAG 📈

A data visualization library built on top of Plotly.js Current version : 0.2.0 Last published version : 0.1.0

This library provides fast and pre-built components to represent different kind of data in a clear and communicative way.

API

See documentation at http://www.dvisionlab.com/polywag

Installation

yarn add polywag

Example

let data = {
  value: [1, 2, 3, 4, 5],
  timestamp: [
    1598368228264, 1598368240796, 1598368248441, 1598368256295, 1598368263938
  ]
};

let hm = new TimeserieComponent("chart-container", {
  title: "A chart",
  color: "Viridis",
  axisSpan: 5 * 60 * 60 * 1000 // 5 hours
});

hm.update(data);

Dev

npm run dev

Use src/index-dev.js that will be injected in index.html and served for dev at localhost:8080.

Build

npm run build

Build the lib in umd format in dist folder.

Build docs

Create template folder into project root
Clone docdash repo (http://clenemt.github.io/docdash/) into /template folder
yarn run generate-docs

Contributors

Mattia Ronzoni (https://github.com/ronzim)
Simone Manini (https://github.com/daron1337)

dvisionlab logo

Readme

Keywords

Package Sidebar

Install

npm i polywag

Weekly Downloads

0

Version

0.2.0

License

MIT

Unpacked Size

18.6 MB

Total Files

87

Last publish

Collaborators

  • ronzim