Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Customizing Axes

Public visualization

Viewing a saved revision (read-only)

ea639af5e7eb482c8bc39a5b7e14a7ce

Customizing Axes

0 stars1🌍 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