SDG-data / SDGs

Data for the Sustainable Development Goals.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

To visualize this data, go to e.g. this website which comes from the website code repository

SDGs

Data for the Sustainable Development Goals.

A machine readable format for the Goals and Indicators for the SDGs, becuase I could not find one.

Sources are declared. If you have any update, please submit a Pull Request.

How to use the data

This is a quick example to load into a variable the data from another Github Pages, pulling directly from here

var version = "v0.05";
var dataurl = "https://raw.githubusercontent.com/SDG-data/SDGs/"+version+"/";
var sdgs = [];
var files = ["goals","targets","indicators"];
function load_data(){
  files.forEach(function (f) {
    console.log("Loading "+f);
    d3.json(dataurl+f+".json", function (error, data) {
      sdgs[data.meta.id]=data;
  });
});
call_your_main_function_that does_the_thing_you_want(); 
}

About

Data for the Sustainable Development Goals.

License:MIT License


Languages

Language:Shell 59.6%Language:HTML 40.4%