Skip to main content
100%

Margins and Axes

✓ Published1🌍 Public
NNikhil Reddy Manda
Last edited May 13, 2021
Created on May 13, 2021

This visualization displays the 2020 populations of ten countries as horizontal bars, with a left-side y-axis listing country names and a bottom x-axis providing population tick marks and gridlines. Built with React and rendered as an SVG, the chart uses D3's `scaleBand` for the categorical y-axis, `scaleLinear` for the population x-axis, and `max` to set the axis domain. Data loads from a CSV hosted on GitHub via D3's `csv` method, and the axes are manually constructed by mapping over tick values and domain elements to draw lines and text labels.

AI-generated description

Margins and Axes

MIT Licensed

Similar vizzes