Skip to main content
100%

Customizing Axes

✓ Published1🌍 Public
TTrey Billing
Last edited Aug 23, 2019
Created on Aug 22, 2019
Forked from Hello VizHub

This example uses D3 v5 to display a bar chart of the ten most populous countries, with population data sourced from the United Nations. It demonstrates customizing axes by using `d3.scaleLinear` and `d3.scalePoint` to map values, `d3.axisBottom` and `d3.axisLeft` with custom tick formats (converting "G" to "B" for billions) and extended tick lines that span the chart's inner dimensions. The SVG rendering includes styled circles representing each country's population, with axis labels and a title configured via CSS.

AI-generated description

This barchart shows population of the top ten most populous countries. The Data is from the United Nations.

MIT Licensed

Similar vizzes