Commodity Origins

Embed a chart on your site

Pick a commodity and a chart, copy the code and paste it into your page. Both charts are static, need no script and no key, and carry a credit line linking back to the source page. They are free to use under CC BY 4.0, so keep the credit in place.

Code

Preview

Any other chart on the site

Every chart on the site (production history, reserves, real prices, trade flows, the pattern reports and more) has an "Embed this chart" box under it with ready-to-paste code. It embeds the chart as a picture with its description as alt text and a credit link back to the chart's page. The picture is a static image that is redrawn when the data change (monthly at most); its address stays the same, so an embedded chart updates the next time the site is rebuilt.

Notes

Badges

A one-line status badge (like a build-status badge), for a README or a forum signature: a static SVG image, no iframe or script. Regenerated with each data refresh.

Code

Preview