Making a Bar Chart
This bar chart visualizes monthly household expenses across categories like gas, electricity, and education, using data from a 2018 United Nations population report. It compares spending against NIBUD advisory thresholds, with a vertical line marking the recommended limit. Built with D3 v5, the chart uses `scaleLinear`, `scaleBand`, `axisLeft`, and `axisBottom` to render an SVG. Custom background rectangles highlight the advisory zone, while colors distinguish expense types. The x-axis is formatted with percentage ticks, and data loads from a CSV via `d3.csv`.
AI-generated descriptionThis bar chart shows population of the top 10 most populous countries. The data comes from the year 2018 estimate in United Nations: World Population Prospects 2017. It also demonstrates customization of D3 axes.