3.3.0 • Published 10 years ago

reportjs v3.3.0

Weekly downloads
4
License
MIT
Repository
github
Last release
10 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

10 years ago

3.2.0

10 years ago

3.1.0

10 years ago

3.0.5

10 years ago

3.0.4

10 years ago

3.0.3

10 years ago

3.0.2

10 years ago

3.0.1

10 years ago

3.0.0

10 years ago

2.0.2

11 years ago

2.0.1

11 years ago

2.0.0

11 years ago

1.3.0

11 years ago