0.3.1 • Published 6 years ago

powerade v0.3.1

Weekly downloads
4
License
MIT
Repository
github
Last release
6 years ago

Powerade

Powerade is a JavaScript library that creates a stakeholders analysis visualization of your data.

Use

Install

Choose one of this options:

Loading this javascript in your DOM:

<script src='https://cdn.jsdelivr.net/npm/powerade@0.3.1/dist/main.js'></script>

Use a package manager

npm install powerade

The main library should be in node_modules/powerade/dist/main.js.

If your are using Rails you need to add this to your application.js:

//= require powerade/dist/main

Initialize the visualization

Then, call the init function to load the visualization within a target div:

const target = document.querySelector('div#powerade');
const elements = [{
  label: 'some label',
  values: {
    'x-dimension': 1,
    'y-dimension': 2,
    'z-dimension': 3
  }
}];
Powerade.init(target, elements);

Develop

yarn watch

Check the generated files at dist/.

Test

yarn lint
yarn test
0.3.1

6 years ago

0.3.0

6 years ago

0.2.0

6 years ago

0.1.0

6 years ago