3.3.0 • Published 8 years ago

reportjs v3.3.0

Weekly downloads
4
License
MIT
Repository
github
Last release
8 years ago

Report.js

Dependancies

Report.js depend on Chart.js for graph rendering. You need to add an ES6 polyfill (core-js or babel-pollyfill) to use this library.

Usage

import {Processor, DOMAdapter} from 'reportjs';

const processor = new Processor();
const adapter = new DOMAdapter();
const report = {
    data: {
        fields: [ 'Year', 'My Count', 'My Sum' ],
        rows: [
            ['2013', 10, 15],
            ['2014', null, 20]
        ]
    },
    layout: {
        type: 'table',
        rows: ['measures'],
        columns: ['Year'],
        measures: ['My Count', 'My Sum']
    }
};

const output = processor.process(report);
adapter.renderTo(document.getElementById('#mycontainer'), output);

This will output

20132014
My Count10
My Sum1520

Contribute

Install the dependencies

git clone https://github.com/BI-joe/report.js.git && cd report.js
npm Install

Tests

npm test
3.3.0

8 years ago

3.2.0

8 years ago

3.1.0

8 years ago

3.0.5

8 years ago

3.0.4

8 years ago

3.0.3

8 years ago

3.0.2

8 years ago

3.0.1

8 years ago

3.0.0

8 years ago

2.0.2

9 years ago

2.0.1

9 years ago

2.0.0

9 years ago

1.3.0

9 years ago