Skip to main content
100%

Customizing Axes

✓ Published0🌍 Public
HHITMANdark07
Last edited Apr 12, 2020
Created on Apr 12, 2020
Forked from Customizing Axes

This example shows a bar chart of the populations of the 20 largest countries in 2017, with countries listed on the y-axis and population on the x-axis. The visualization uses d3.csv to load the data, d3.scaleLinear and d3.scaleBand to map values to positions, and d3.axisLeft to render the y-axis ticks. The SVG rendering includes custom margins and styled axis labels via CSS, with all population values multiplied by 1,000 in the data preparation step.

AI-generated description

A bar chart of populations for the 20 largest countries in 2017 page.

See also React Starter.

MIT Licensed

Similar vizzes