HTML Reports Generation Utility
This example shows how to generate HTML reports with charts using AnyChart charting library and Node.js module.
Clone this repository:
$ git clone firstname.lastname@example.org: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.
- jsdom (DOM environment for the chart rendering)
- commander (for console API)
- anychart (anychart library)
- anychart-nodejs (anychart nodejs export module)
AnyChart NodeJS integration sample includes two parts:
If you have any questions regarding licensing - please contact us. email@example.com