Skip to main content
100%

Custumizing Axes

✓ Published2🌍 Public
Iilsan142
Last edited Nov 24, 2022
Created on Nov 7, 2022
Forked from Making a Bar Chart

This bar chart displays the population of the top 10 most populous countries, using 2018 estimates from the World Population Prospects 2017 data. The chart renders with D3 v7 in SVG, using `scaleLinear`, `scaleBand`, `axisLeft`, and `axisBottom`. It customizes tick formatting with a custom function that abbreviates numbers using `format('.3s')` and replaces 'G' with 'B', while removing axis lines and gridlines via `.tickSize` and `.select('.domain').remove()`. Population values are multiplied by 1,000 from the CSV data.

AI-generated description

This bar chart shows popilation of the top 10 most poplous countries. the data comes from the year 2018 estimate in World Population Prospects 2017.

MIT Licensed

Similar vizzes