Skip to content
This repository has been archived by the owner on Sep 15, 2022. It is now read-only.
/ powerade Public archive

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

License

Notifications You must be signed in to change notification settings

afaundez/powerade

Repository files navigation

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

About

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

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published