Hide table of contents

You can now integrate Our World in Data charts much more easily into forum posts. These new features work with any of our interactive charts – their URLs look like this:

https://ourworldindata.org/grapher/[name-of-the-chart]

Previews on hover

If you add a link to an OWID chart in your text, a preview window will automatically appear when readers hover over it. For example, here's the yearly number of deaths from malaria by age since 1990.

Embedded charts

If you want to make a chart visible directly in your post, you can simply paste the URL and an embedded version of the chart should automatically appear. Here, for example, I'm pasting this:

https://ourworldindata.org/grapher/cost-of-sequencing-a-full-human-genome

to show this:

Note that when you make changes to an interactive chart on OWID (e.g. choosing a time window, selecting countries, switching to a different scale), your configuration is saved in the URL. Starting from this chart of primary energy from nuclear, I can make a line chart for G7 countries, and copy the resulting URL from my browser:

https://ourworldindata.org/grapher/nuclear-primary-energy?tab=chart&country=FRA~DEU~USA~GBR~ITA~JPN~CAN

which I can paste here to embed this:


Many thanks to Adam Binks for coming up with this idea at EAGx Oxford!

Comments10
Sorted by Click to highlight new comments since:

This is slick, thank you! I don't use OWiD charts in my posts, but I might now that there's this feature.

Are there plans to support OWID's explorer charts? For example this one doesn't render:

https://ourworldindata.org/explorers/poverty-explorer?tab=chart&time=latest&facet=none&country=USA~AUS~AUT~BEL~CAN~CHL~COL~CRI~CZE~DNK~EST~FIN~FRA~DEU~GRC~HUN~ISL~IRL~ISR~ITA~JPN~LVA~LTU~LUX~MEX~NLD~NOR~POL~PRT~SVK~KOR~SVN~SWE~CHE~ESP~TUR~GBR~OWID_WRL&Indicator=Income+or+consumption+of+the+poorest+10%25&Poverty+line=%242.15+per+day%3A+International+Poverty+Line&Household+survey+data+type=Show+data+from+both+income+and+consumption+surveys&Show+breaks+between+less+comparable+surveys=false

Screenshot:

I'll write down the request. I tried previewing what it would look like and it's not perfect

so we'd probably need OWID to make a dedicated preview page.

drafting a post which uses this feature, and I'm a bit disappointed in terms of how much smaller the map is compared to using the downloaded figure from the OWiD. I think it would be better if the map were took up more of the available width. 

Great feature! Just wondering whether Our World in Data charts can be embedded into Substack and Ghost in a similar way.

You can implement them easily in Ghost by using the HTML embed. You find this when you click on the bottom right corner the share button and click "embed".

Thanks very much!

The current implementation doesn't include them. I guess it would be possible to do it, but they're quite larger than Grapher charts in terms of interface, so I'm not sure we would manage to find a user-friendly way to make them fit within the width of a forum post.

Love this feature! Very excited to use this in my next post.

Curated and popular this week
Relevant opportunities