Git Product home page Git Product logo

live-d3's Introduction

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

live-d3's People

Contributors

veercg avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.