Skip to main content
100%

Population of NZ by age, 2016

✓ Published0🌍 Public
Llinh-pham-nz
Last edited Dec 13, 2019
Created on Nov 14, 2019
Forked from Making a Bar Chart

A bar chart displays New Zealand's population by age group for 2016, with each bar's height representing the total population for that cohort. The visualization highlights the distribution across age brackets, from 0-4 to 85+. Built with D3 v5, the chart uses `scaleBand` for the categorical x-axis and `scaleLinear` for the y-axis, with `axisBottom` and `axisLeft` generating the axes. Data is loaded from a CSV file and rendered as SVG rectangles, with styling applied via external CSS.

AI-generated description

Issues:

  • cannot get yAxis results to display properly - when yValue range values swapped -> inversion of graph (blue bits filled in from top)
MIT Licensed

Similar vizzes