Making a Bar Chart
✓ Published1🌍 Public
This horizontal bar chart displays the populations of 19 eastern Japanese prefectures, using data from the United Nations World Population Prospects 2020 estimates, converted to absolute values (multiplied by 1,000). Built with D3 v5, the visualization maps population to a linear scale (`scaleLinear`) for the x-axis and prefecture names to a band scale (`scaleBand`) for the y-axis, rendering bars as SVG `rect` elements. Axes are added via `axisLeft` and `axisBottom`, with all marks styled in steel blue using a global CSS rule.
AI-generated descriptionThis barchart shows population of the east j most populous prefs.. The data comes from the year 2020 estimate in Unaited Nations:World Population Prospects 2020
MIT Licensed