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

Commit

Permalink
Bump to 0.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
afaundez committed Aug 8, 2018
1 parent c1c6b62 commit 225ceb0
Show file tree
Hide file tree
Showing 3 changed files with 54 additions and 4 deletions.
28 changes: 28 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# Changelog
All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).

## [0.2.0] - 2018-08-08
### Added
- Package commands for test and lint
- Example HTML, script and samples
## Changed
- CSS style now uses loaders
- Folder structure
- Base style is B/W now
- Variables, id, attributes and code style
### Fixed
- Wrong dimension labels


## [0.1.0] - 2018-06-21
### Added
- Webpack project using Babel
- Jest and JHint for testing and lint
- First working version, hosted on NPM
- Base visualization using HTML and CSS
- Drag and drop using vanilla javascript
- User can provide a handler action for drops
- User can provide custom avatar for the items
28 changes: 25 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,36 @@

Stakeholder visualization.

## Develop
## Usage

### Run
Load this javascript, for example:

```html
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/main.js"></script>
```

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

```javascript
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

```sh
yarn watch
```
Check `dist/example.html`.

Check the generated files at `dist/`.

### Test

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "powerade",
"version": "0.1.0",
"version": "0.2.0",
"description": "stakeholder visualization",
"scripts": {
"watch": "webpack --watch --mode=development",
Expand Down

0 comments on commit 225ceb0

Please sign in to comment.