🌍 Public
Viewing a saved revision (read-only)
6a3f28b6c85e4cc49d30d73f19d24b08
Customizing Axes
This example shows a bar chart of employment numbers across occupations in New York City, with interactive year buttons (2010–2019) that update the displayed data. The visualization uses d3.v6 with SVG rendering and animation. Axes are customized using `d3.axisLeft` and `d3.axisBottom`, with a linear scale for the x-axis and a band scale for the y-axis. Clicking a year button triggers a redraw of the chart via inline CSV data, highlighting the selected year in blue.
AI-generated description