Skip to main content
100%

Customizing Axes

✓ Published2🌍 Public
Ffbudwill
Last edited Apr 27, 2020
Created on Apr 26, 2020
Forked from Making a Bar Chart

This horizontal bar chart displays the population of the ten most populous countries, with values formatted in billions using a custom tick format that replaces 'G' with 'B'. The chart uses d3.scaleBand for the categorical y-axis and d3.scaleLinear for the population x-axis, with d3.axisLeft and d3.axisBottom rendering the axes. SVG rectangles represent the bars, and the y-axis gridlines are removed while the x-axis includes a label. Data comes from a CSV file loaded via d3.csv.

AI-generated description
MIT Licensed

Similar vizzes