Skip to content

Latest commit

 

History

History
32 lines (23 loc) · 1.02 KB

README.md

File metadata and controls

32 lines (23 loc) · 1.02 KB

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(); 
}