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 descriptionMIT Licensed
Comments
Sign in to join the discussion.