` )) }});

Data Commons

Air and Climate

Goal 13. Greenhouse Gas Reduction Climate Action

International Emissions Time

View Emissions Timeline - View Code on GitHub

Embedded Stacked Plot for Multiple Country Codes:

Weather Data Loader

View Weather Forecast - Caches data from api.weather.gov.  View our Javacript

To refresh the weather forecast, delete the file at: dist/_file/air/weather/data/forecast.867a89c9.json, then yarn build

Python for Google Data Commons API

Our CoLab for emission timelines - Loads from GDC API with Python - Paul

Learn about Datacommons.org API used in Python

Building json and Fetching with Data Loader

Observable data loaders

Javascript and python Data Loader samples from Observable.

The javascript fetches json with this cmd

node docs/air/data/forecast.json.js

The python requires running "python" external to Observable build.

python docs/air/data/forecast.json.py

Python cannot be built from the yarn build  node.js cmd, but it can be run directly using the command above, or within GitHub Pages or through a Google CoLab API.


Embed of GDC Component

Placed in a span or div tag for built version.

Chart not visible until built. Data Commons Web Components - Line Chart Web Component

More

Paul's How To - under development. We also need a javascript version.