@slashdotdash/node-googlecharts
v1.0.0
Published
Node based Google Charts rendering
Downloads
8
Readme
Google Chart for Node using jsdom
Requirements
- Node.js > 4.0
- ICU4C
ICU4C dependency
Google Chart needs full internationalization support whereas it's not built in by default on nodejs. You can either:
- Use full-icu npm package which requires running node with a specific environment variable.
- Or, build Node.js with an embedded icu. more info
Run binary
node bin/node-googlecharts <ChartWrapperOptions>
ChartWrapperOptions
is the serialized JSON options to give to ChartWrapper
.
FAQ
Who uses it?
lambda-googlechart uses it to generate charts images on AWS Lambda.
Why jsdom?
Google Charts needs a browser-like environment to run in. Jsdom is a light DOM implementation, much faster than PhantomJS.
Why Node.js > 4.0?
This is a requirement of jsdom itself.
Why does it need ICU4C?
Google Chart needs full internationalization support whereas it's not built in by default on nodejs.