Skip to content

Instantly share code, notes, and snippets.

@kantord
Last active February 25, 2018 17:06
Show Gist options
  • Save kantord/4a0b80ab21e409654f2fa538aa164dae to your computer and use it in GitHub Desktop.
Save kantord/4a0b80ab21e409654f2fa538aa164dae to your computer and use it in GitHub Desktop.
dashboard "Sovereign states":
- h1 text: Sovereign states
- h2 text: Number of sovereign states/entities by year
- line chart:
- attr:query: '{"x": "year", "columns": [["year"] + [.[] | .year], ["number of countries"] + [.[] | .["count(*)"]]]}'
- data: "https://gist.githubusercontent.com/kantord/b621e6abbb04fe7fc30b671bc617ccaf/raw/098e1459645fba9258db2a636c2acd950f235c37/number_of_sovereign_states_by_year.csv"
- h2 text: Number of fatalities for 1 billion people in armed conflicts by year
- line chart:
- attr:query: '{"x": "year", "columns": [["year"] + [.[] | .year], ["war deaths per billion person"] + [.[] | .["war_deaths_per_billion_person"]]]}'
- data: "https://gist.githubusercontent.com/kantord/0817fee93a4b5b57711748f3edcec4cf/raw/6e788667673035ff6a0ab997f4adae31ddf27a31/war_deaths_per_population_by_year.csv"
- h2 text: Number of war deaths in 1 billion vs. number of countries
- scatter chart:
- attr:query: '{"x": "number of countries", "columns": [["number of countries"] + [.[] | .["count(*)"]], ["war deaths per billion person"] + [.[] | .["war_deaths_per_billion_person"]]]}'
- data: "https://gist.githubusercontent.com/kantord/cc837a36503518143ef8a161fe23459c/raw/72f489f968f01fe1181a913a507a29fb2d0e97ce/war_deaths_vs_number_of_countries.csv"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment