5 small projects to understand D3.js basics using Firebase and Materialize.
# | Project | Description |
---|---|---|
01 | Bar Chart | A simple bar graph to understand D3.js basics using Firebase. |
02 | Pie Chart | A budget planner displaying a donut chart with Materialize. |
03 | Line Graphs | A fitness tracker displaying line graphs. |
04 | Bubble Chart | A circle packing diagram to learn data hierarchy. |
05 | Tree Diagram | A hierarchical chart using Materialize. |
A simple bar graph to understand D3.js basics using Firebase.
- creating simple SVG shapes and appending them to the DOM with D3.js.
- changing attributes with .attr() and grouping elements together.
- joining JSON data to elements and adding virtual elements to the DOM.
- using linear and band scales with min, max and extent.
- creating a bar chart: centering a graph, adding axes and formatting ticks.
- creating a Firestore database, setting up the Firebase config and getting data from Firestore.
- understanding the D3 update pattern and using Firestore realtime data updates.
- adding D3 transitions and custom tweens.
A budget planner displaying a donut chart with Materialize.
- creating an HTML template with Materialize.
- handling a form and adding data to Firestore.
- setting up a pie chart and generating arc paths with D3.
- generating colors with ordinal scales.
- customizing arc tween and adding legends with d3-legend.
- handling events: mouseOver, mouseOut and click.
- adding tooltips with d3-v6-tip.
A fitness tracker displaying line graphs.
- creating an HTML template with Materialize.
- handling DOM events and adding data to Firestore.
- using time scales and formatting dates with D3.
- filtering data by activity and sorting data by date.
- generating line paths and adding data point hover effect.
A circle packing diagram to learn data hierarchy.
- handling data hierarchy in D3 with stratify() method.
- adding value property to nodes with sum().
- creating circle packs with pack() and descendants().
- displaying tags in node leaves.
- generating colors according to node depth.
A hierarchical chart using Materialize.
- creating an HTML template and a modal with Materialize.
- handling a form and adding data to Firestore.
- generating a tree diagram in D3 with stratify() and tree() methods.
- displaying hierarchical nodes and links.
Based on Build Data Visualizations with D3.js & Firebase by Shaun Pelling - The Net Ninja (2019)