0.3.1 • Published 7 years ago
powerade v0.3.1
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 poweradeThe 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/mainInitialize 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 watchCheck the generated files at dist/.
Test
yarn lint
yarn test