Skip to main content
100%

Customising Axes

✓ Published1🌍 Public
Jjhofang
Last edited Jan 6, 2020
Created on Jan 5, 2020
Forked from Making a Bar Chart

A horizontal bar chart shows the ten most populous countries, with population values on the x-axis and country names on the y-axis. The chart uses d3.csv to load the data, d3.scaleLinear and d3.scaleBand for the scales, and d3.axisBottom and d3.axisLeft for the axes. The x-axis labels are formatted with d3.format, and the y-axis gridlines and domain line are removed, while the x-axis domain is also removed. A custom axis label and title are added as SVG text elements.

AI-generated description
MIT Licensed

Similar vizzes