chart.js charts using electron
RenderLeverage chart.js
and electron
features for quick visualisations.
This modules just proxies options to chart.js
constructor.
See chart.js documentation for options.
Installation
npm i electron-chartjs
Usage
The only difference from chart.js
constructor - you need to skeep context argument.
Simple barchart:
const chart =
will render window with barchart.
For more charts check chart.js docs
Why?
To reduce number of actions you need to perform for visualizing data from database using js.
No need to setup client + server to render some charts with js.
Example:
const usersByAge = await knexconst labels = _const data = _
License
MIT