This example shows how to generate reports with AnyChart charts and NodeJS.
npm install nodejs-report-generation-utility[![NPM Version][npm-image]][npm-url] [![NPM Downloads][downloads-image]][downloads-url] [![Package Quality][quality-image]][quality-url]
$ git clone git@github.com:anychart-integrations/nodejs-report-generation-utility.git
`
Go to the example folder:
`
$ cd ./nodejs-report-generation-utility
`
To run an example you have to install dependencies. To do so run:
`
$ npm install
`
> Notice!
> AnyChart NodeJS module requires ImageMagic to create JPG and PNG images.
Visit Image Magic install page for details.
Note for Windows users: you have to create environment variable as described in Image Magic: Advanced Windows Installation article.And to run with defaults you should just exec index.js file with nodejs.
`
$ node index.js
Written to reports/report.html file
`
> Notice!
> Please refrain from using percent values in chart. In node js DOM emulation there is some problems with this and resulting image may be differ from the planned.Options
`
-i, --input [value] - path to input data file with a chart, a stage or an svg. Default: chart.js.
-f, --format [value] - format (type) of input data. Possible values: svg, xml, javascript, json. Default: javascript.
-o, --output [value] - path to output directory for reports. Default: reports
-n, --name [value] - name of a report file. Default: report.html
``If you have any questions regarding licensing - please contact us.

[npm-image]: https://img.shields.io/npm/v/nodejs-report-generation-utility.svg?style=flat-square
[npm-url]: https://www.npmjs.com/package/nodejs-report-generation-utility
[downloads-image]: https://img.shields.io/npm/dm/nodejs-report-generation-utility.svg?style=flat-square
[downloads-url]: https://www.npmjs.com/package/nodejs-report-generation-utility
[quality-image]: http://npm.packagequality.com/shield/nodejs-report-generation-utility.svg?style=flat-square
[quality-url]: http://packagequality.com/#?package=nodejs-report-generation-utility