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!

8 comments, sorted by Click to highlight new comments since: Today at 1:43 PM
New Comment

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

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.