hooq-reporting
v0.0.4
Published
Reporting engine for hooq
Downloads
20
Readme
hooq-reporting
Generates hit graph data for hooq/chartjs. Requires a driver to actually fetch data, so can be backed onto any data source.
There is a hooq driver you can look at - https://github.com/dwnz/hooq-reporting-drivers-mongo
Installing
npm install hooq-reporting --save
Example Usage
var reportEngine = require('hooq-reporting');
var reportDriver = require('DRIVERNAME');
reportEngine.generateReport(reportDriver, new Date(2014,09,01), new Date(2014,09,31), {filter} function(err, data) {
console.log(data);
});
Methods
.generateReport(driver, start date, end date, filter, callback) - returns report data
.daysBetween(start date, end date) - returns number of days between two dates