Skip to main content
100%

Customizing Axes

✓ Published1🌍 Public
CCaleb
Last edited Jun 17, 2020
Created on Jun 17, 2020
Forked from Making a Barchart

This bar chart displays the population of the top 10 most populous countries, with countries on the y-axis and population values on the x-axis. The visualization customizes both axes by removing default domain lines and tick marks, adding custom tick formatting that converts large numbers to abbreviations like "B" for billions, and appending axis labels. It uses d3.csv to load data, d3.scaleLinear and d3.scaleBand for scaling, and d3.axisBottom and d3.axisLeft to generate the axes. Rectangles are drawn in SVG, styled with CSS, and the chart includes a title.

AI-generated description
MIT Licensed

Similar vizzes