Customizing Axes
✓ Published0🌍 Public
This example shows the number of employed workers across various occupations in New York City for each year from 2010 to 2019. It uses a horizontal bar chart with customized axes, including a formatted x-axis using `d3.format` to abbreviate large numbers and a categorical y-axis. The visualization is interactive, allowing users to click year buttons to update the displayed data. Built with D3 v5, it uses `d3.scaleLinear`, `d3.scaleBand`, `d3.axisBottom`, and `d3.axisLeft` to render the SVG, with data loaded from a string and animation via transitions.
AI-generated descriptionMIT Licensed