Skip to main content
100%

Customizing Axis of a Bar Chart

✓ Published1🌍 Public
Ccaedcagt76@gmail.com
Last edited Dec 15, 2023
Created on Dec 15, 2023
Forked from D3 Bar Chart

This bar chart visualizes the population of the world’s most populous countries, sourced from a Kaggle dataset. It uses a horizontal bar layout with country names on the y-axis and population counts on the x-axis. The chart employs a linear scale for population and a band scale for countries, with custom tick formatting that converts billions to abbreviated labels (e.g., “B”). D3’s axis components are customized by removing domain lines and ticks, and grid lines are added via tick sizing. The chart is rendered as SVG using d3.scaleLinear, d3.scaleBand, d3.axisLeft, and d3.axisBottom.

AI-generated description

This bar chart shows population of the top most populous countries. The data comex from Kaggle.

MIT Licensed

Similar vizzes