Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Q2 Area chart

Public visualization

Viewing a saved revision (read-only)

65c5aba33f634183ab440c0b2d172562

Fork of Q2 Area chart

0 stars0🌍 Public
Rramsrinivaskatragadda@my.unt.edu
Last edited Apr 13, 2024
Created on Apr 13, 2024
Forked from Q2 Area chart

This visualization displays employee salaries grouped by gender, using overlapping area paths to compare the two categories across a categorical name axis. The chart loads CSV data via `d3.csv`, nests entries by gender with `d3.nest`, and renders the areas using the `d3.area()` generator. It maps salary values through `d3.scaleLinear` for the y-axis, applies a band scale for the x-axis, and colors each gendered area with a two-value `d3.scaleOrdinal`. The SVG output includes axes via `d3.axisBottom` and `d3.axisLeft`.

AI-generated description

A responsive scatter plot.