UN Goal Timelines - Data Commons
Goal #1: Great Jobs
Data Commons API via Javascript
Timeline charts using the GDC Javascript API.
You can find the DCID and property value using:
- Data Commons Google Sheets add-on
- Data Commons Place Browser
- Data Commons StatVar Browser
- Data Commons Browser
Based on REST API v2/observation example 3
TO DO: Add intuitive dropdown menus for selecting properties.
NOTE: Including a Relation Expression (property value) currently calls v2/node API. Add a dropdown for switching the API.
Parent to children
->* means an 'out' arc with all the properties (children) linked to this node.
Child to parent
<- means an 'in' arc of a child to it's parent nodes.
variable.dcids: Count_Person, Count_Farm, LandCoverFraction_Forest
Variable DCIDs:
Property (v2/node)
JSON Output from Google Data Commons API
NodeJS
Yarn Build into dist/jobs folder
The client-side version of the following resides within docs/jobs/index.html and uses
components/data-loader-earth.js.