https://github.com/mode/swiveljs
We pivot so you don't have to
https://github.com/mode/swiveljs
Last synced: 5 months ago
JSON representation
We pivot so you don't have to
- Host: GitHub
- URL: https://github.com/mode/swiveljs
- Owner: mode
- License: mit
- Created: 2014-12-14T21:04:37.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2017-04-19T00:23:16.000Z (about 9 years ago)
- Last Synced: 2024-11-02T00:32:39.387Z (over 1 year ago)
- Language: JavaScript
- Size: 4.83 MB
- Stars: 6
- Watchers: 69
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README

[](https://coveralls.io/r/mode/swiveljs?branch=master)
```
{
fields: [
{type: 'group', name: 'season'},
{type: 'pivot', name: 'team'},
{type: 'sum', name: 'yards', as: 'Total Yards'},
{type: 'average', name: 'age', as: 'Total Yards'}
]
}
swivel(dataset.content)
.group('quarter')
.pivot('season')
.sum('yards')
```