nlstats
v1.3.0
Published
[![wercker status](https://app.wercker.com/status/0939cd4cdcf19271f6cf865d7ede8333/s "wercker status")](https://app.wercker.com/project/bykey/0939cd4cdcf19271f6cf865d7ede8333)
Downloads
8
Readme
NlStats
An universal library to generate visualization config based on CQL response and visualization metadata.
Installation
$ npm install --save nlstats
Usage
import NlStats from 'nlstats';
let stats = new NlStats();
or
var NlStats = require('nlstats');
var stats = new NlStats();
API
nlStats.visualize(response, metadata)
Construct config object from provided CQL response and widget metadata.
Parameters
- Object
response
: An object containing the CQL response - Object
metadata
: An object containing the widget metadata
Return
- Object - Highcharts config object
License
MIT © Achmad Mahardi