Skip to main content
100%

Customizing Axes

✓ Published1🌍 Public
Eecw99
Last edited Mar 22, 2020
Created on Mar 22, 2020
Forked from Customizing Axes

This example visualizes the heights of wide receivers from the 2010 NFL draft, using data from a local CSV file. It builds on a basic bar chart to demonstrate how D3 axes can be customized, applying styled tick labels, grid lines, and axis titles through the `d3.axisLeft` and `d3.axisBottom` APIs. The SVG rendering uses `d3.scaleBand` and `d3.scaleLinear` for the chart’s scales, with formatting via `d3.format`.

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