https://github.com/davidpelayo/orb-latest
New Orb Pivot Table fork
https://github.com/davidpelayo/orb-latest
data-tables js orb pivot pivot-tables tables
Last synced: about 1 year ago
JSON representation
New Orb Pivot Table fork
- Host: GitHub
- URL: https://github.com/davidpelayo/orb-latest
- Owner: davidpelayo
- License: mit
- Created: 2017-05-11T08:56:15.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2023-03-02T21:49:29.000Z (over 3 years ago)
- Last Synced: 2025-03-26T03:41:34.920Z (about 1 year ago)
- Topics: data-tables, js, orb, pivot, pivot-tables, tables
- Language: JavaScript
- Size: 3.68 MB
- Stars: 13
- Watchers: 4
- Forks: 5
- Open Issues: 11
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGES.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
# [orb](http://orbjs.net/)[
](https://www.npmjs.com/package/orb-latest)
Pivot grid javascript library.
**Website:** WIP.
**Latest version:** 2.0.1
### Demo:

### Features
#### Interactivity
- Drag'n'drop to move fields
- Click to sort
- Visual filters
- Drill down (cell double click)
- Multiple data fields support
- Grand totals & Sub totals
- Sub totals expand/collapse
- Enhanced scrolling (fixed headers)
- Export to Excel *(new in 1.0.9)*
- Fast rendering using [React](http://facebook.github.io/react/index.html)
#### Customization
- Via code and/or toolbar
- Data headers location
- Grand totals visibility
- Sub totals visibility & collapsed state
- Data cells aggregate & format functions
- Theming: built-in & Bootstrap
#### Data query
Query aggregation results with a simple API:
```javascript
var orb = require('orb');
var pgrid = new orb.pgrid(config);
// query
var q = pgrid.query()
.Manufacturer('Adventure Works')
.Class('Economy');
```
**1 field**
```javascript
q.Amount()
=> 1185.17
```
**List of fields**
```javascript
q.val('Amount', 'Q')
=> {
Amount: 1185.17,
Q: 44
}
```
**Aggregation func**
**builtin**
```javascript
q.stdev('Amount', 'Q');
=> {
Amount: 1377.58,
Q: 3.9
}
```
**custom**
```javascript
q.val({
// count
aggregateFunc: function(datafield, intersection, datasource) {
return intersection.length;
},
fields: ['Amount', 'Q']
});
=> {
Amount: 7,
Q: 7
}
```
## Licence
[MIT](https://github.com/nnajm/orb/blob/master/LICENSE)