Skip to main content
100%

Final Project Tree Map

✓ Published0🌍 Public
DDuc Pham
Last edited May 7, 2024
Created on May 6, 2024

This treemap visualization displays the average salaries and observation counts for various job titles, grouped by job category. It uses the D3.js `treemap` layout algorithm to partition a rectangular canvas into nested rectangles, with each rectangle’s area proportional to its data value. Each leaf node is rendered as an SVG `rect`, with fill color assigned via a categorical color scale based on the parent category. Interactive tooltips appear on mouseover, showing the category, title, average salary, and observation count. Text labels are added to each leaf node, with font size scaled to rectangle width. The data is loaded from a remote JSON file.

AI-generated description

A bare minimum HTML page demonstrating use of CSS and JavaScript.

See also React Starter.

MIT Licensed

Similar vizzes