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.
This commodity has no freely redistributable price series, so only the production chart is available.
Code
Copied.
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
The frames are noindex and cached for a day; figures update with each monthly data refresh.
Set the width to 100% for a responsive chart. Suggested heights: 300 for production, 420 for price.
For the underlying numbers rather than a picture, use the JSON API. Prices are monthly benchmark averages and not investment advice.
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.
This commodity has no benchmark price, so only the top-producer badge is available.
Code
Copied.
Preview
Before you continue to use Commodity Origins
Required. This site sets no cookies by default. It stores your answer here, your light or dark theme and any watchlist you build in your browser's local storage, on your device only. Cloudflare Web Analytics counts visits without cookies.
Accept all also lets Google Analytics set analytics cookies to count visits and improve the site, and lets Google AdSense run, which can set advertising cookies and show ads based on your browsing. Accept required keeps Google Analytics cookieless (it sets no cookies, but still sends Google an anonymous request when a page loads) and does not run AdSense, so no ads are loaded. Cookie details · Privacy policy