Skip to main content
100%

Customizing Axes

✓ Published0🌍 Public
Ttracy3057
Last edited Dec 5, 2020
Created on Dec 5, 2020
Forked from Customizing Axes

This example shows how to customize axes in D3.js v5 by displaying the number of employed people across various occupations in New York City from 2010 to 2019. Users click year buttons to update the bar chart, which animates transitions between datasets using `transition.attr` and `transition.duration`. The code uses `scaleLinear`, `scaleBand`, `axisLeft`, and `axisBottom` with custom tick formatting via `format`. Data is loaded from CSV files, and the visualization renders as SVG rectangles with a steelblue fill.

AI-generated description
MIT Licensed

Similar vizzes