Skip to main content
๐ŸŒ Public

Share visualization

Send this visualization to others.

Military spending GDP

Public visualization

Military spending GDP

1 star0๐ŸŒ Public
KKinjal-Goyani
Last edited Jan 27, 2023
Created on Jan 25, 2023
Forked from Military spending

This chart displays military expenditure as a percentage of GDP for seven countries from 2001 to 2021, using a color-coded line chart with a legend. The visualization highlights trends and comparisons over time, with each country represented by a distinct line. Built with D3 v5, it uses SVG rendering and scales such as `scaleTime` and `scaleLinear` for axes, along with `nest` and `line` to create the paths. The data is loaded from a CSV file, and a custom legend is constructed using the `colorLegend` module.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed