Skip to content

D3.js - Data-Driven Documents: overview of D3.js.

Notifications You must be signed in to change notification settings

Raigyo/d3js-overview

Repository files navigation

D3.js - Data-Driven Documents

November 2020

🔨 D3.js is a JavaScript library for manipulating documents based on data. D3 helps you bring data to life using HTML, SVG, and CSS. D3’s emphasis on web standards gives you the full capabilities of modern browsers without tying yourself to a proprietary framework, combining powerful visualization components and a data-driven approach to DOM manipulation.

From Udemy: La visualisation de données avec D3.js


Demos

Projects

Demo 01: Animated tile chart with datas from Firebase and automatic udpate when we add, update or delete data from the database.

graph-tile-01

Demo 02: Animated pie chart with datas from Firebase. We can add items using inputs and delete them by clicking on them in the chart.

graph-pie-02

Concepts and methods

graph-line-03

colors-04

To test locally

  • Clone

  • Rename

assets/js/_demo-01-graph-tile-firebase.js

assets/js/_demo-02-graph-pie-firebase.js

to

assets/js/_demo-01-graph-tile-firebase.js

assets/js/_demo-02-graph-pie-firebase.js

  • Create a project in Firebase and add a Cloud Firestore application.

  • Copy your credentials in the two firebase.js files (you can share the same Firestore application the demos or use two different ones).

  • For demo 01: create a collection named 'country' with a string field 'name' and an integer field 'price'. Add some datas.

  • For demo 02: create a collection named 'spending' with a string field 'name' and an integer field 'price'. Add some datas.

  • It should work locally like that. Don't push your 'firebase.js' on Github!!!

Useful links

About

D3.js - Data-Driven Documents: overview of D3.js.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published