Skip to content

A Tree Map Diagram. This is the fifth certification project of freeCodeCamp's Data Visualization Course.

Notifications You must be signed in to change notification settings

ericraycodes/fcc-dv-treemapdiagram-1.0

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

About

A Tree Map Diagram. This is the fifth certification project of freeCodeCamp's Data Visualization Course.

Tools

  1. D3js version 7
  2. JavaScript
  3. GitHub, GitBash
  4. GitHub Pages for hosting
  5. Sublime Text (Editor)
  6. VS Code (Live Server)

Logic

The project is data-oriented. Visual-renders are dictated by: the availability and selection of data; user-interaction. The es modules is used to compartmentalize scripts - a comfortable way of developing and debugging.

Workflow

  1. Created initial json file as data-store to house external data and visual specifications for the tree map.
  2. Made sure that the external datasets are fetched and available in the data-store.
  3. Made submodules to divide tasks on rendering contents.

Notes

  1. The es module does not need the defer attribute. It is placed within the html <body/>. It acts similar to a deferred script.
  2. This project used an Immediately Invoked Function Expression (IIFE) - it will run when the <script/> starts to execute.
  3. Important JSON rules to avoid errors: a. Do not use // comments. a. The latest-coded object-property must not be tailed with a comma.
  4. A D3 Tree Map hierarchical layout requires node.value.

About

A Tree Map Diagram. This is the fifth certification project of freeCodeCamp's Data Visualization Course.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published