Giter Club home page Giter Club logo

powerade's Introduction

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/[email protected]/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

powerade's People

Contributors

afaundez avatar

Stargazers

 avatar

Watchers

 avatar

powerade's Issues

Wrong dropzones and draggables sizes in Safari

Describe the bug
1:1 aspect ratio is not working on Safari

To Reproduce
Steps to reproduce the behavior:

  1. Run the example site using 0.3.0

screen shot 2018-09-22 at 6 48 21 pm

Expected behavior

Dropzones and draggables should be squares, Chrome render them ok:

screen shot 2018-09-22 at 6 51 36 pm

Desktop (please complete the following information):

  • OS: MacOS High Sierra
  • Browser: Safari 12

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.