Skip to content

SDG-data/SDGs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

Resources

License

Stars

Watchers

Forks

Packages

No packages published