QuickChart
Ever wanted to visualize a dataset in a chart in seconds in a node app? Search no further!
QuickChart quickly opens a minimalistic node server and displays a ChartJs graph on your fav' browser using autoChart.
Installation
npm i quickchart
Usage
quickchart(type, data, [options])
The available chart types are bar
, line
, radar
, doughnut
, pie
and polarArea
.
Available options :
port
the server's porthostname
the server's hostnamecallback
a callback when success/fail.callback(error)
By default, the port is 8001
, the host is localhost
and callback is a console.log
or a console.error
.
Example
const quickchart = // with an object // with an array
QuickChart is running on 127.0.0.1:8001
License
MIT © Ivan Sedletzki - Please use and share at will
Special thanks to Dinesh Pandiyan for npm-module-boilerplate