Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Let's make a customizing axis Bar Graph with D3.js

Public visualization

Let's make a customizing axis Bar Graph with D3.js

0 stars0🌍 Public
SSurajQWERTY
Last edited Mar 5, 2022
Created on Mar 5, 2022

This bar chart displays the population of the top 10 most populous countries, with horizontal bars ranked from China to Mexico. The visualization uses D3.js v7 with SVG rendering. The code employs `d3.scaleLinear` for the x-axis, `d3.scaleBand` for the y-axis, and `d3.axisLeft` and `d3.axisBottom` to generate customized axes with removed domains and tick lines. Population values from a CSV file are multiplied by 1000 and formatted using `d3.format`.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed