Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Customizing Axes

Public visualization

Viewing a saved revision (read-only)

d9fb8c4ca6744382b962ad1383e3daa0

Customizing Axes

0 stars0🌍 Public
Ttracy3057
Last edited Dec 8, 2020
Created on Dec 5, 2020
Forked from Customizing Axes

This interactive bar chart displays the number of employed people in New York City across 25 occupations, with buttons to switch between years from 2010 to 2019. The visualization uses `d3.scaleLinear` for the x-axis and `d3.scaleBand` for the categorical y-axis, with `d3.axisBottom` and `d3.axisLeft` for custom ticks and gridlines. Data comes from local CSV files, and user clicks trigger redrawing of rectangles with updated scales. The SVG rendering includes custom tick formatting with `d3.format` to abbreviate large numbers.

AI-generated description