Build realtime charts in Javascript using NodeJs and WebSockets.
We use PieSocket Channels to publish graph data from the NodeJS server every second. Received data is then plotted on the frontend using ChartJS.
Clone the repository
[email protected]:piesocket/realtime-charts-javascript.git
Install node depencies:
cd realtime-charts-javascript
npm install
Start NodeJS server
npm start
Open the following link in browser
http://localhost:3000
Follow this tutorial to learn how to build this yourself: How To Build Realtime Charts With JavaScript and WebSocket