Davids D3 Bar Chart: General Governemnt Debt
This bar chart visualizes the general government debt-to-GDP ratios of the ten highest-ranking countries in 2015, using data from the OECD. The chart displays each country’s debt percentage as a vertical bar, ordered from highest to lowest, with Japan leading at over 237%. Built with D3 v5, the visualization uses `d3.csv` to load the data and `d3.scaleBand` and `d3.scaleLinear` to map countries and debt values to SVG rectangles. Axis labels and value annotations are generated via `d3.axisBottom` and `d3.axisLeft`, with styling applied through CSS.
AI-generated descriptionThis bar chart shows the percentage of general government debts of the ten highest ranking countries in 2015. General governemnt debt means the ratio of general gross government debt to the governments GDP.
The data originates from the OECD and is from the year 2015.