Skip to main content
100%

Customizing Axes

✓ Published1🌍 Public
Ttracy3057
Last edited Jun 15, 2021
Created on Dec 5, 2020
Forked from 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
MIT Licensed

Similar vizzes