Skip to content
/ Live-D3 Public

Building real-time D3 chart components using Angular and WebSockets.

License

Notifications You must be signed in to change notification settings

veercg/Live-D3

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Live-D3

Live-D3 is a kickstart project to build real-time D3 chart components using Angular and WebSockets(Socket.IO).

#Demo Live-D3 Demo ** Notice the dashboard page, Charts are getting updated with new data in real-time, without any manual reload of dashboard page.

#Download You can either download the whole project by clicking "Download ZIP" button on top-right side or can clone the repository to your local via cmd :

git clone https://github.com/veercg/Live-D3.git

#Installation Step 1. Download and install Node.js (If you already have node installed, you can skip this step.) Download Node.js

Step 2. Installing server dependencies Go to the local folder where you have cloned the repository via command prompt and type:

npm install

Step 3. Installing client dependencies Go inside the '/public' folder via command prompt and type:

npm install

Step 4. Running server Now you can go back to local folder where you have the file 'server.js' and run the node server by typing:

node server.js

Step 5. If you are able to see : "listening on *:3000" in your command prompt, you have installed the project successfully.

#Usage Now you can open your browser and open these two links in two different tabs:

http://localhost:3000/dashboard.html
http://localhost:3000/user.html

Woah! I am able to see D3 charts in Dashboard page.

Now try entering some data 'user.html' page for updating charts in the dashboard. For e.g.

For Pie Chart:
Enter Data : 23 (any integer)

For Line Chart:
Enter Hour : 12 (any integer)
Enter Sales : 40 (any integer)

Check out the dashboard page, charts got updated automatically in real-time. Cool! Isn't it. :)

License

MIT

About

Building real-time D3 chart components using Angular and WebSockets.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published