npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

nodejs-report-generation-utilily

v1.1.2

Published

This example shows how to generate reports with AnyChart charts and NodeJS.

Downloads

7

Readme

HTML Reports Generation Utility

This example shows how to generate HTML reports with charts using AnyChart charting library and Node.js module.

Running

Clone this repository:

$ git clone [email protected]: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

Requirements

  • jsdom (DOM environment for the chart rendering)
  • commander (for console API)
  • anychart (anychart library)
  • anychart-nodejs (anychart nodejs export module)

Further Learning

License

AnyChart NodeJS integration sample includes two parts:

  • Code of the integration sample that allows to use Javascript library (in this case, AnyChart) with HTML Reports Generation Utility. You can use, edit, modify it, use it with other Javascript libraries without any restrictions. It is released under Apache 2.0 License.
  • AnyChart JavaScript library. It is released under Commercial license. You can test this plugin with the trial version of AnyChart. Our trial version is not limited by time and doesn't contain any feature limitations. Check details here.

If you have any questions regarding licensing - please contact us. [email protected]

Analytics