posts: 7922
Data license: CC-BY
This data as json
id | title | slug | type | status | content | archieml | archieml_update_statistics | published_at | updated_at | gdocSuccessorId | authors | excerpt | created_at_in_wordpress | updated_at_in_wordpress | featured_image | formattingOptions | markdown | wpApiSnapshot |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
7922 | How to embed Our World In Data visualizations in your article | how-to-embed | post | publish | <!-- wp:paragraph --> <p>You can use any of the interactive visualizations from Our World In Data in your articles. This is possible because everything is permissively licensed (under <a href="https://creativecommons.org/licenses/by-sa/3.0/">CC-BY-SA</a>) and because there is an easy embed feature on every chart.</p> <!-- /wp:paragraph --> <!-- wp:paragraph --> <p>Here are three recent examples of articles that embed OWID visualizations:</p> <!-- /wp:paragraph --> <!-- wp:paragraph --> <p>– <a href="http://www.politifact.com/global-news/statements/2016/mar/23/gayle-smith/did-we-really-reduce-extreme-poverty-half-30-years/">Politifact using OurWorldInData in fact checking claims about global poverty</a>.</p> <!-- /wp:paragraph --> <!-- wp:paragraph --> <p>– <a href="http://ofuturodascoisas.com/projecao-da-populacao-pelo-nivel-educacional-ate-2100/">The Brazilian website <em>o futuro das coisas</em> in an article about the future of global education</a>.</p> <!-- /wp:paragraph --> <!-- wp:paragraph --> <p>– <a href="http://www.vox.com/2016/4/25/11488196/world-malaria-day">Vox.com in an article on the decline of global malaria deaths on World Malaria Day</a>.</p> <!-- /wp:paragraph --> <!-- wp:heading {"level":4} --> <h4>An example</h4> <!-- /wp:heading --> <!-- wp:paragraph --> <p>For example let's assume you want to write about fertility and on the <a href="https://ourworldindata.org/fertility/">fertility</a> page you find this map that you want to embed in your own article:</p> <!-- /wp:paragraph --> <!-- wp:paragraph --> <p><iframe src="https://ourworldindata.org/grapher/children-per-woman-un" width="100%" height="600px"></iframe></p> <!-- /wp:paragraph --> <!-- wp:heading {"level":4} --> <h4>All you have to do to embed it in your article</h4> <!-- /wp:heading --> <!-- wp:paragraph --> <p>At the bottom right of the chart you click the little icon and then chose the option <strong> </>Embed</strong>. You will see a box popping up with the following bit of text:</p> <!-- /wp:paragraph --> <!-- wp:paragraph --> <p><iframe src="https://ourworldindata.org/grapher/children-per-woman-un" width="100%" height="600px"></iframe></p> <!-- /wp:paragraph --> <!-- wp:paragraph --> <p>Now you just take this bit of html code and place it in the text of your own article.</p> <!-- /wp:paragraph --> <!-- wp:paragraph --> <p>An iframe is used to display a website within another website (<em>w3schools</em> has <a href="http://www.w3schools.com/html/html_iframe.asp">more info on iframes</a>.) Similar to when you embed a YouTube video in your article, your article now embeds an Our World In Data visualization.</p> <!-- /wp:paragraph --> <!-- wp:heading {"level":4} --> <h4>Change the map focus, change the year</h4> <!-- /wp:heading --> <!-- wp:paragraph --> <p>We try to make the embed tool as useful as possible: For example, you can focus on Africa instead of World in the map above; and you can move the time slider to 2015 (you will get <a href="https://ourworldindata.org/grapher/children-per-woman-un?region=Africa&year=2015">this</a>). Now when you click on<strong> </> Embed</strong> you get the following bit of code:</p> <!-- /wp:paragraph --> <!-- wp:paragraph --> <p><iframe src="https://ourworldindata.org/grapher/children-per-woman-un?region=Africa&year=2015" width="100%" height="600px"></iframe></p> <!-- /wp:paragraph --> <!-- wp:paragraph --> <p>If you copy-paste this code your article will embed the map with a focus on Africa and the fertility rate for 2015.</p> <!-- /wp:paragraph --> <!-- wp:paragraph --> <p>And the same works for the chart view. Just switch to Chart in the visualization above and add the countries that you are interested in – like <a href="https://ourworldindata.org/grapher/children-per-woman-un?tab=chart&country=DEU+IRN">this</a>. When you click on<strong> </> Embed</strong> you can now get the code to embed this line chart.</p> <!-- /wp:paragraph --> <!-- wp:heading {"level":4} --> <h4>Static visualizations for your text or presentation</h4> <!-- /wp:heading --> <!-- wp:paragraph --> <p>It is also possible to put static versions of Our World In Data visualizations in web articles, text documents or presentations. Just click on PNG below the chart and you have the chart that you need.</p> <!-- /wp:paragraph --> | { "id": "wp-7922", "slug": "how-to-embed", "content": { "toc": [], "body": [ { "type": "text", "value": [ { "text": "You can use any of the interactive visualizations from Our World In Data in your\u00a0articles. This is possible because everything is\u00a0permissively licensed (under ", "spanType": "span-simple-text" }, { "url": "https://creativecommons.org/licenses/by-sa/3.0/", "children": [ { "text": "CC-BY-SA", "spanType": "span-simple-text" } ], "spanType": "span-link" }, { "text": ") and because there is an easy embed feature on every chart.", "spanType": "span-simple-text" } ], "parseErrors": [] }, { "type": "text", "value": [ { "text": "Here are three recent\u00a0examples of articles\u00a0that embed OWID visualizations:", "spanType": "span-simple-text" } ], "parseErrors": [] }, { "type": "text", "value": [ { "text": "\u2013 ", "spanType": "span-simple-text" }, { "url": "http://www.politifact.com/global-news/statements/2016/mar/23/gayle-smith/did-we-really-reduce-extreme-poverty-half-30-years/", "children": [ { "text": "Politifact using OurWorldInData in fact checking claims about global poverty", "spanType": "span-simple-text" } ], "spanType": "span-link" }, { "text": ".", "spanType": "span-simple-text" } ], "parseErrors": [] }, { "type": "text", "value": [ { "text": "\u2013 ", "spanType": "span-simple-text" }, { "url": "http://ofuturodascoisas.com/projecao-da-populacao-pelo-nivel-educacional-ate-2100/", "children": [ { "text": "The Brazilian website\u00a0", "spanType": "span-simple-text" }, { "children": [ { "text": "o futuro das coisas", "spanType": "span-simple-text" } ], "spanType": "span-italic" }, { "text": "\u00a0in an article about the future of global education", "spanType": "span-simple-text" } ], "spanType": "span-link" }, { "text": ".", "spanType": "span-simple-text" } ], "parseErrors": [] }, { "type": "text", "value": [ { "text": "\u2013 ", "spanType": "span-simple-text" }, { "url": "http://www.vox.com/2016/4/25/11488196/world-malaria-day", "children": [ { "text": "Vox.com in an article on the decline of global malaria deaths on World Malaria Day", "spanType": "span-simple-text" } ], "spanType": "span-link" }, { "text": ".", "spanType": "span-simple-text" } ], "parseErrors": [] }, { "text": [ { "text": "An example", "spanType": "span-simple-text" } ], "type": "heading", "level": 2, "parseErrors": [] }, { "type": "text", "value": [ { "text": "For example\u00a0let's assume\u00a0you want to write about\u00a0fertility and on the ", "spanType": "span-simple-text" }, { "url": "https://ourworldindata.org/fertility/", "children": [ { "text": "fertility", "spanType": "span-simple-text" } ], "spanType": "span-link" }, { "text": " page\u00a0you find this map that you want to embed in your own article:", "spanType": "span-simple-text" } ], "parseErrors": [] }, { "text": [ { "text": "All you have to do to embed it in your article", "spanType": "span-simple-text" } ], "type": "heading", "level": 2, "parseErrors": [] }, { "type": "text", "value": [ { "text": "At the bottom right of the chart you click the little icon and then chose the option ", "spanType": "span-simple-text" }, { "children": [ { "text": "\u00a0</>Embed", "spanType": "span-simple-text" } ], "spanType": "span-bold" }, { "text": ". You will see a\u00a0box popping up with the following bit of text:", "spanType": "span-simple-text" } ], "parseErrors": [] }, { "type": "text", "value": [ { "text": "<iframe src=\"https://ourworldindata.org/grapher/children-per-woman-un\" width=\"100%\" height=\"600px\"></iframe>", "spanType": "span-simple-text" } ], "parseErrors": [] }, { "type": "text", "value": [ { "text": "Now you just take this bit of html code and place it in\u00a0the text of your own article.", "spanType": "span-simple-text" } ], "parseErrors": [] }, { "type": "text", "value": [ { "text": "An iframe is used to display a website within another website (", "spanType": "span-simple-text" }, { "children": [ { "text": "w3schools", "spanType": "span-simple-text" } ], "spanType": "span-italic" }, { "text": " has\u00a0", "spanType": "span-simple-text" }, { "url": "http://www.w3schools.com/html/html_iframe.asp", "children": [ { "text": "more info on iframes", "spanType": "span-simple-text" } ], "spanType": "span-link" }, { "text": ".) Similar to when you embed a YouTube video in your article, your article now embeds an Our World In Data visualization.", "spanType": "span-simple-text" } ], "parseErrors": [] }, { "text": [ { "text": "Change the map focus, change the year", "spanType": "span-simple-text" } ], "type": "heading", "level": 2, "parseErrors": [] }, { "type": "text", "value": [ { "text": "We try to make the embed tool as useful as possible: For example, you can focus on Africa instead of World in the map above; and you can move the time slider to 2015 (you will get ", "spanType": "span-simple-text" }, { "url": "https://ourworldindata.org/grapher/children-per-woman-un?region=Africa&year=2015", "children": [ { "text": "this", "spanType": "span-simple-text" } ], "spanType": "span-link" }, { "text": "). Now when you click on", "spanType": "span-simple-text" }, { "children": [ { "text": " </> Embed", "spanType": "span-simple-text" } ], "spanType": "span-bold" }, { "text": " you get the following bit of code:", "spanType": "span-simple-text" } ], "parseErrors": [] }, { "type": "text", "value": [ { "text": "<iframe src=\"https://ourworldindata.org/grapher/children-per-woman-un?region=Africa&year=2015\" width=\"100%\" height=\"600px\"></iframe>", "spanType": "span-simple-text" } ], "parseErrors": [] }, { "type": "text", "value": [ { "text": "If you copy-paste this code your article will embed the\u00a0map with a focus on Africa and the fertility rate for 2015.", "spanType": "span-simple-text" } ], "parseErrors": [] }, { "type": "text", "value": [ { "text": "And the same works for the chart view.\u00a0Just switch to Chart in the\u00a0visualization above and\u00a0add the countries that you are interested in \u2013 like ", "spanType": "span-simple-text" }, { "url": "https://ourworldindata.org/grapher/children-per-woman-un?tab=chart&country=DEU+IRN", "children": [ { "text": "this", "spanType": "span-simple-text" } ], "spanType": "span-link" }, { "text": ". When you click on", "spanType": "span-simple-text" }, { "children": [ { "text": " </> Embed", "spanType": "span-simple-text" } ], "spanType": "span-bold" }, { "text": " you can now get the code to embed this line chart.", "spanType": "span-simple-text" } ], "parseErrors": [] }, { "text": [ { "text": "Static\u00a0visualizations for your text or presentation", "spanType": "span-simple-text" } ], "type": "heading", "level": 2, "parseErrors": [] }, { "type": "text", "value": [ { "text": "It is also possible to put static versions of Our World In Data visualizations in web articles, text documents or presentations.\u00a0Just click on\u00a0PNG below the chart\u00a0and you have the chart that you need.", "spanType": "span-simple-text" } ], "parseErrors": [] } ], "type": "article", "title": "How to embed Our World In Data visualizations in your article", "authors": [ "Max Roser" ], "dateline": "June 13, 2016", "sidebar-toc": false, "featured-image": "" }, "createdAt": "2016-06-13T09:58:00.000Z", "published": false, "updatedAt": "2023-10-11T09:50:57.000Z", "revisionId": null, "publishedAt": "2016-06-13T09:58:00.000Z", "relatedCharts": [], "publicationContext": "listed" } |
{ "errors": [ { "name": "unexpected elements in p", "details": "Found 1 elements" } ], "numBlocks": 19, "numErrors": 1, "wpTagCounts": { "heading": 4, "paragraph": 16 }, "htmlTagCounts": { "p": 16, "h4": 4, "iframe": 1 } } |
2016-06-13 09:58:00 | 2024-02-16 14:22:46 | 1rD09jXoEG2FDKNkHsfs_iDL4wW1nGwUf1KEl-uhNTKA | [ "Max Roser" ] |
2016-06-13 09:58:00 | 2023-10-11 09:50:57 | {} |
You can use any of the interactive visualizations from Our World In Data in your articles. This is possible because everything is permissively licensed (under [CC-BY-SA](https://creativecommons.org/licenses/by-sa/3.0/)) and because there is an easy embed feature on every chart. Here are three recent examples of articles that embed OWID visualizations: – [Politifact using OurWorldInData in fact checking claims about global poverty](http://www.politifact.com/global-news/statements/2016/mar/23/gayle-smith/did-we-really-reduce-extreme-poverty-half-30-years/). – [The Brazilian website _o futuro das coisas_ in an article about the future of global education](http://ofuturodascoisas.com/projecao-da-populacao-pelo-nivel-educacional-ate-2100/). – [Vox.com in an article on the decline of global malaria deaths on World Malaria Day](http://www.vox.com/2016/4/25/11488196/world-malaria-day). ## An example For example let's assume you want to write about fertility and on the [fertility](https://ourworldindata.org/fertility/) page you find this map that you want to embed in your own article: ## All you have to do to embed it in your article At the bottom right of the chart you click the little icon and then chose the option ** </>Embed**. You will see a box popping up with the following bit of text: <iframe src="https://ourworldindata.org/grapher/children-per-woman-un" width="100%" height="600px"></iframe> Now you just take this bit of html code and place it in the text of your own article. An iframe is used to display a website within another website (_w3schools_ has [more info on iframes](http://www.w3schools.com/html/html_iframe.asp).) Similar to when you embed a YouTube video in your article, your article now embeds an Our World In Data visualization. ## Change the map focus, change the year We try to make the embed tool as useful as possible: For example, you can focus on Africa instead of World in the map above; and you can move the time slider to 2015 (you will get [this](https://ourworldindata.org/grapher/children-per-woman-un?region=Africa&year=2015)). Now when you click on** </> Embed** you get the following bit of code: <iframe src="https://ourworldindata.org/grapher/children-per-woman-un?region=Africa&year=2015" width="100%" height="600px"></iframe> If you copy-paste this code your article will embed the map with a focus on Africa and the fertility rate for 2015. And the same works for the chart view. Just switch to Chart in the visualization above and add the countries that you are interested in – like [this](https://ourworldindata.org/grapher/children-per-woman-un?tab=chart&country=DEU+IRN). When you click on** </> Embed** you can now get the code to embed this line chart. ## Static visualizations for your text or presentation It is also possible to put static versions of Our World In Data visualizations in web articles, text documents or presentations. Just click on PNG below the chart and you have the chart that you need. | { "id": 7922, "date": "2016-06-13T09:58:00", "guid": { "rendered": "https://ourworldindata.org/?p=7922" }, "link": "https://owid.cloud/how-to-embed", "meta": { "owid_publication_context_meta_field": { "latest": true, "homepage": true, "immediate_newsletter": true } }, "slug": "how-to-embed", "tags": [], "type": "post", "title": { "rendered": "How to embed Our World In Data visualizations in your article" }, "_links": { "self": [ { "href": "https://owid.cloud/wp-json/wp/v2/posts/7922" } ], "about": [ { "href": "https://owid.cloud/wp-json/wp/v2/types/post" } ], "author": [ { "href": "https://owid.cloud/wp-json/wp/v2/users/2", "embeddable": true } ], "curies": [ { "href": "https://api.w.org/{rel}", "name": "wp", "templated": true } ], "replies": [ { "href": "https://owid.cloud/wp-json/wp/v2/comments?post=7922", "embeddable": true } ], "wp:term": [ { "href": "https://owid.cloud/wp-json/wp/v2/categories?post=7922", "taxonomy": "category", "embeddable": true }, { "href": "https://owid.cloud/wp-json/wp/v2/tags?post=7922", "taxonomy": "post_tag", "embeddable": true } ], "collection": [ { "href": "https://owid.cloud/wp-json/wp/v2/posts" } ], "wp:attachment": [ { "href": "https://owid.cloud/wp-json/wp/v2/media?parent=7922" } ], "version-history": [ { "href": "https://owid.cloud/wp-json/wp/v2/posts/7922/revisions", "count": 12 } ], "predecessor-version": [ { "id": 58325, "href": "https://owid.cloud/wp-json/wp/v2/posts/7922/revisions/58325" } ] }, "author": 2, "format": "standard", "status": "publish", "sticky": false, "content": { "rendered": "\n<p>You can use any of the interactive visualizations from Our World In Data in your articles. This is possible because everything is permissively licensed (under <a href=\"https://creativecommons.org/licenses/by-sa/3.0/\">CC-BY-SA</a>) and because there is an easy embed feature on every chart.</p>\n\n\n\n<p>Here are three recent examples of articles that embed OWID visualizations:</p>\n\n\n\n<p>\u2013 <a href=\"http://www.politifact.com/global-news/statements/2016/mar/23/gayle-smith/did-we-really-reduce-extreme-poverty-half-30-years/\">Politifact using OurWorldInData in fact checking claims about global poverty</a>.</p>\n\n\n\n<p>\u2013 <a href=\"http://ofuturodascoisas.com/projecao-da-populacao-pelo-nivel-educacional-ate-2100/\">The Brazilian website <em>o futuro das coisas</em> in an article about the future of global education</a>.</p>\n\n\n\n<p>\u2013 <a href=\"http://www.vox.com/2016/4/25/11488196/world-malaria-day\">Vox.com in an article on the decline of global malaria deaths on World Malaria Day</a>.</p>\n\n\n\n<h4>An example</h4>\n\n\n\n<p>For example let’s assume you want to write about fertility and on the <a href=\"https://ourworldindata.org/fertility/\">fertility</a> page you find this map that you want to embed in your own article:</p>\n\n\n\n<p><iframe loading=\"lazy\" src=\"https://ourworldindata.org/grapher/children-per-woman-un\" width=\"100%\" height=\"600px\"></iframe></p>\n\n\n\n<h4>All you have to do to embed it in your article</h4>\n\n\n\n<p>At the bottom right of the chart you click the little icon and then chose the option <strong> </>Embed</strong>. You will see a box popping up with the following bit of text:</p>\n\n\n\n<p><iframe src=”https://ourworldindata.org/grapher/children-per-woman-un” width=”100%” height=”600px”></iframe></p>\n\n\n\n<p>Now you just take this bit of html code and place it in the text of your own article.</p>\n\n\n\n<p>An iframe is used to display a website within another website (<em>w3schools</em> has <a href=\"http://www.w3schools.com/html/html_iframe.asp\">more info on iframes</a>.) Similar to when you embed a YouTube video in your article, your article now embeds an Our World In Data visualization.</p>\n\n\n\n<h4>Change the map focus, change the year</h4>\n\n\n\n<p>We try to make the embed tool as useful as possible: For example, you can focus on Africa instead of World in the map above; and you can move the time slider to 2015 (you will get <a href=\"https://ourworldindata.org/grapher/children-per-woman-un?region=Africa&year=2015\">this</a>). Now when you click on<strong> </> Embed</strong> you get the following bit of code:</p>\n\n\n\n<p><iframe src=”https://ourworldindata.org/grapher/children-per-woman-un?region=Africa&year=2015″ width=”100%” height=”600px”></iframe></p>\n\n\n\n<p>If you copy-paste this code your article will embed the map with a focus on Africa and the fertility rate for 2015.</p>\n\n\n\n<p>And the same works for the chart view. Just switch to Chart in the visualization above and add the countries that you are interested in \u2013 like <a href=\"https://ourworldindata.org/grapher/children-per-woman-un?tab=chart&country=DEU+IRN\">this</a>. When you click on<strong> </> Embed</strong> you can now get the code to embed this line chart.</p>\n\n\n\n<h4>Static visualizations for your text or presentation</h4>\n\n\n\n<p>It is also possible to put static versions of Our World In Data visualizations in web articles, text documents or presentations. Just click on PNG below the chart and you have the chart that you need.</p>\n", "protected": false }, "excerpt": { "rendered": "", "protected": false }, "date_gmt": "2016-06-13T09:58:00", "modified": "2023-10-11T10:50:57", "template": "", "categories": [ 81, 1 ], "ping_status": "closed", "authors_name": [ "Max Roser" ], "modified_gmt": "2023-10-11T09:50:57", "comment_status": "open", "featured_media": 0, "featured_media_paths": { "thumbnail": null, "medium_large": null } } |