Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Customizing Axis

Public visualization

Customizing Axis

0 stars1🌍 Public
陳陳泰元
Last edited Sep 30, 2022
Created on Sep 30, 2022
Forked from Making a Bar Chart

This bar chart displays the top 10 most populous countries using population data from a CSV file. The visualization customizes both axes: the y-axis removes domain lines and ticks for a cleaner look, while the x-axis formats population values (e.g., converting "G" to "B" for billions) and extends tick lines across the chart. Built with D3 v7, it uses `scaleLinear`, `scaleBand`, `axisLeft`, and `axisBottom`, rendering as SVG. The x-axis label and title are added as text elements, with bars styled in steelblue via external CSS.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed