Skip to main content
100%

Customizing Axes

✓ Published2🌍 Public
SSamuel Elbaz
Last edited Nov 12, 2019
Created on Oct 29, 2019
Forked from Making a bar chart

This bar chart displays the top 10 most populous countries, with population values on the x-axis and country names on the y-axis. It uses D3 v5’s `scaleLinear`, `scaleBand`, `axisLeft`, and `axisBottom` APIs, with a custom tick formatter via `format('.3s')` to abbreviate numbers. SVG rendering is used, drawing steel-blue bars with margins and a title. The data comes from a CSV file where population values are multiplied by 1000 during loading.

AI-generated description
MIT Licensed

Similar vizzes