Skip to main content
100%

Customizing Axes

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

This interactive bar chart displays employment data for various occupations in New York City across multiple years (2010–2019). Each bar’s length represents the number of employed individuals, with occupations listed vertically and sorted by value. The chart dynamically updates through transitions when new yearly CSV data loads, ensuring smooth visual changes. Built with D3 v5, the visualization uses `select`, `csv`, `scaleLinear`, `scaleBand`, `axisLeft`, `axisBottom`, and `format` APIs to create custom axes with tick formatting and grid lines. SVG rectangles render the bars, and animated transitions via `transition().duration()` enhance the user experience. The data originates from provided CSV files per year.

AI-generated description

This bar chart shows population of the top 10 most populous countries. The data comes from the year 2018 estimate in United Nations: World Population Prospects 2017. It also demonstrates customization of D3 axes.

See also the first bar chart visualization that this one builds on: Making a Bar Chart.

MIT Licensed

Similar vizzes