Miss any of our Open RFC calls?Watch the recordings here! »

node-chartjs-v12

1.0.2 • Public • Published

node-chartjs

Chart.js on the server in Node.js 8.x.x or later

Based on previous work by https://github.com/vmpowerio/chartjs-node

With a few improvements we think:

  • Uses the newer ~9.x.x~ 11.x.x version of JSDOM
  • Does not pollute node's global namespace

Note that we strongly advise against trying to "execute scripts" by mashing together the jsdom and Node global environments (e.g. by doing global.window = dom.window), and then executing scripts or test code inside the Node global environment. Instead, you should treat jsdom like you would a browser, and run all scripts and tests that need access to a DOM inside the jsdom environment, using window.eval or runScripts: "dangerously". This might require, for example, creating a browserify bundle to execute as a

Install

npm i node-chartjs-v12

DownloadsWeekly Downloads

18

Version

1.0.2

License

MIT

Unpacked Size

11.5 kB

Total Files

6

Last publish

Collaborators

  • avatar