{"info":{"_postman_id":"8ece1b34-ed89-4519-b27f-229637acb735","name":"How to visualize data in Postman","description":"<html><head></head><body><p>Let's learn how to visualize data in Postman!</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Time series for USA</th>\n<th>Time series for China</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><img src=\"https://i.imgur.com/Jx0aETc.png\" alt=\"\"></td>\n<td><img src=\"https://i.imgur.com/u2gQ0le.png\" alt=\"\"></td>\n</tr>\n</tbody>\n</table>\n</div><hr>\n<h3 id=\"youtube-video-playlist\">YouTube video playlist</h3>\n<p>📽 <strong>️<a href=\"https://www.youtube.com/playlist?list=PL6yYBvW22vbqiyhb_U-RWfxuZNv0DKBP8\">How to visualize data in Postman</a></strong></p>\n<p>If you don't feel like watching the videos, everything that you need is right here in Postman. Follow along with this collection's descriptions for each request in the Postman app. </p>\n<p><img src=\"https://i.imgur.com/7RiNicS.png\" alt=\"[descriptions](https://i.imgur.com/7RiNicS.png)\"></p>\n<p>Or follow along with the step-by-step tutorial <a href=\"https://documenter.getpostman.com/view/1215211/SzYW4g6t?version=latest\">documentation on the web</a>. </p>\n<p><img src=\"https://i.imgur.com/rA8QHlM.png\" alt=\"[documentation](https://i.imgur.com/rA8QHlM.png)\"></p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"1215211","collectionId":"8ece1b34-ed89-4519-b27f-229637acb735","publishedId":"SzYW4g6t","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2020-03-31T06:10:45.000Z"},"item":[{"name":"Get Started","item":[{"name":"Step 1: scripts in Postman","event":[{"listen":"test","script":{"id":"bac79026-dfbd-4ff2-9a29-35897888e6ae","exec":["console.log(\"Oh hey there - I'm a test script! 👋\");"],"type":"text/javascript"}},{"listen":"prerequest","script":{"id":"a77e94ed-7b66-461b-a8b3-cc79cf2ad435","exec":["console.log(\"👋 Hello from the pre-request script!\");"],"type":"text/javascript"}}],"id":"38f0b8cf-e95e-4aa3-bb09-a1ca4b73135f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"body":{"mode":"raw","raw":""},"url":"https://covidapi.info/api/v1/country/USA","description":"<h3 id=\"youtube-video\">YouTube video</h3>\n<p><strong><a href=\"https://youtu.be/KTmeZ5cSVSg\">Step 1 - scripts in Postman</a></strong></p>\n<hr />\n<p>Under the <strong>Pre-request Script</strong> and <strong>Tests</strong> tabs, you can add JavaScript code before the request is sent and after the response is received, respectively. Postman will run this code in the <a href=\"https://learning.postman.com/docs/postman/scripts/postman-sandbox-api-reference\">Postman Sandbox</a> environment, which also gives you access to some in-built functions that we'll explore in a bit. This code that runs before or after your request is called a <a href=\"https://learning.postman.com/docs/postman/scripts/intro-to-scripts/\">script in Postman</a>.</p>\n<ul>\n<li><strong>Pre-request Script</strong> - before request is sent</li>\n<li><strong>Test Script</strong> - after response is received</li>\n</ul>\n<p>Open the <a href=\"https://learning.postman.com/docs/postman/sending-api-requests/debugging-and-logs/#network-calls-with-the-postman-console\">Postman console</a> using the bottom left icon. <strong>Send</strong> this request, and see the execution order of your main network request in relation to the pre-request and test scripts.</p>\n<p><img src=\"https://i.imgur.com/8LplWV2.png\" alt=\"[screenshot console](https://i.imgur.com/8LplWV2.png)\" /></p>\n","urlObject":{"protocol":"https","path":["api","v1","country","USA"],"host":["covidapi","info"],"query":[],"variable":[]}},"response":[{"id":"45af9ba3-3a17-40af-8562-6f00950567e4","name":"Country specific historic data","originalRequest":{"method":"GET","header":[],"url":"https://covidapi.info/api/v1/country/IND"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.14.0 (Ubuntu)"},{"key":"Date","value":"Sun, 22 Mar 2020 07:46:33 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Expires","value":"Sun, 22 Mar 2020 15:46:33 GMT"},{"key":"Cache-Control","value":"max-age=28800"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n    \"count\": 59,\n    \"result\": {\n        \"2020-01-22\": {\n            \"confirmed\": 0,\n            \"deaths\": 0,\n            \"recovered\": 0\n        },\n        \"2020-01-23\": {\n            \"confirmed\": 0,\n            \"deaths\": 0,\n            \"recovered\": 0\n        },\n        \"2020-01-24\": {\n            \"confirmed\": 0,\n            \"deaths\": 0,\n            \"recovered\": 0\n        },\n        \"2020-01-25\": {\n            \"confirmed\": 0,\n            \"deaths\": 0,\n            \"recovered\": 0\n        },\n        \"2020-01-26\": {\n            \"confirmed\": 0,\n            \"deaths\": 0,\n            \"recovered\": 0\n        },\n        \"2020-01-27\": {\n            \"confirmed\": 0,\n            \"deaths\": 0,\n            \"recovered\": 0\n        },\n        \"2020-01-28\": {\n            \"confirmed\": 0,\n            \"deaths\": 0,\n            \"recovered\": 0\n        },\n        \"2020-01-29\": {\n            \"confirmed\": 0,\n            \"deaths\": 0,\n            \"recovered\": 0\n        },\n        \"2020-01-30\": {\n            \"confirmed\": 1,\n            \"deaths\": 0,\n            \"recovered\": 0\n        },\n        \"2020-01-31\": {\n            \"confirmed\": 1,\n            \"deaths\": 0,\n            \"recovered\": 0\n        },\n        \"2020-02-01\": {\n            \"confirmed\": 1,\n            \"deaths\": 0,\n            \"recovered\": 0\n        },\n        \"2020-02-02\": {\n            \"confirmed\": 2,\n            \"deaths\": 0,\n            \"recovered\": 0\n        },\n        \"2020-02-03\": {\n            \"confirmed\": 3,\n            \"deaths\": 0,\n            \"recovered\": 0\n        },\n        \"2020-02-04\": {\n            \"confirmed\": 3,\n            \"deaths\": 0,\n            \"recovered\": 0\n        },\n        \"2020-02-05\": {\n            \"confirmed\": 3,\n            \"deaths\": 0,\n            \"recovered\": 0\n        },\n        \"2020-02-06\": {\n            \"confirmed\": 3,\n            \"deaths\": 0,\n            \"recovered\": 0\n        },\n        \"2020-02-07\": {\n            \"confirmed\": 3,\n            \"deaths\": 0,\n            \"recovered\": 0\n        },\n        \"2020-02-08\": {\n            \"confirmed\": 3,\n            \"deaths\": 0,\n            \"recovered\": 0\n        },\n        \"2020-02-09\": {\n            \"confirmed\": 3,\n            \"deaths\": 0,\n            \"recovered\": 0\n        },\n        \"2020-02-10\": {\n            \"confirmed\": 3,\n            \"deaths\": 0,\n            \"recovered\": 0\n        },\n        \"2020-02-11\": {\n            \"confirmed\": 3,\n            \"deaths\": 0,\n            \"recovered\": 0\n        },\n        \"2020-02-12\": {\n            \"confirmed\": 3,\n            \"deaths\": 0,\n            \"recovered\": 0\n        },\n        \"2020-02-13\": {\n            \"confirmed\": 3,\n            \"deaths\": 0,\n            \"recovered\": 0\n        },\n        \"2020-02-14\": {\n            \"confirmed\": 3,\n            \"deaths\": 0,\n            \"recovered\": 0\n        },\n        \"2020-02-15\": {\n            \"confirmed\": 3,\n            \"deaths\": 0,\n            \"recovered\": 0\n        },\n        \"2020-02-16\": {\n            \"confirmed\": 3,\n            \"deaths\": 0,\n            \"recovered\": 3\n        },\n        \"2020-02-17\": {\n            \"confirmed\": 3,\n            \"deaths\": 0,\n            \"recovered\": 3\n        },\n        \"2020-02-18\": {\n            \"confirmed\": 3,\n            \"deaths\": 0,\n            \"recovered\": 3\n        },\n        \"2020-02-19\": {\n            \"confirmed\": 3,\n            \"deaths\": 0,\n            \"recovered\": 3\n        },\n        \"2020-02-20\": {\n            \"confirmed\": 3,\n            \"deaths\": 0,\n            \"recovered\": 3\n        },\n        \"2020-02-21\": {\n            \"confirmed\": 3,\n            \"deaths\": 0,\n            \"recovered\": 3\n        },\n        \"2020-02-22\": {\n            \"confirmed\": 3,\n            \"deaths\": 0,\n            \"recovered\": 3\n        },\n        \"2020-02-23\": {\n            \"confirmed\": 3,\n            \"deaths\": 0,\n            \"recovered\": 3\n        },\n        \"2020-02-24\": {\n            \"confirmed\": 3,\n            \"deaths\": 0,\n            \"recovered\": 3\n        },\n        \"2020-02-25\": {\n            \"confirmed\": 3,\n            \"deaths\": 0,\n            \"recovered\": 3\n        },\n        \"2020-02-26\": {\n            \"confirmed\": 3,\n            \"deaths\": 0,\n            \"recovered\": 3\n        },\n        \"2020-02-27\": {\n            \"confirmed\": 3,\n            \"deaths\": 0,\n            \"recovered\": 3\n        },\n        \"2020-02-28\": {\n            \"confirmed\": 3,\n            \"deaths\": 0,\n            \"recovered\": 3\n        },\n        \"2020-02-29\": {\n            \"confirmed\": 3,\n            \"deaths\": 0,\n            \"recovered\": 3\n        },\n        \"2020-03-01\": {\n            \"confirmed\": 3,\n            \"deaths\": 0,\n            \"recovered\": 3\n        },\n        \"2020-03-02\": {\n            \"confirmed\": 5,\n            \"deaths\": 0,\n            \"recovered\": 3\n        },\n        \"2020-03-03\": {\n            \"confirmed\": 5,\n            \"deaths\": 0,\n            \"recovered\": 3\n        },\n        \"2020-03-04\": {\n            \"confirmed\": 28,\n            \"deaths\": 0,\n            \"recovered\": 3\n        },\n        \"2020-03-05\": {\n            \"confirmed\": 30,\n            \"deaths\": 0,\n            \"recovered\": 3\n        },\n        \"2020-03-06\": {\n            \"confirmed\": 31,\n            \"deaths\": 0,\n            \"recovered\": 3\n        },\n        \"2020-03-07\": {\n            \"confirmed\": 34,\n            \"deaths\": 0,\n            \"recovered\": 3\n        },\n        \"2020-03-08\": {\n            \"confirmed\": 39,\n            \"deaths\": 0,\n            \"recovered\": 3\n        },\n        \"2020-03-09\": {\n            \"confirmed\": 43,\n            \"deaths\": 0,\n            \"recovered\": 3\n        },\n        \"2020-03-10\": {\n            \"confirmed\": 56,\n            \"deaths\": 0,\n            \"recovered\": 4\n        },\n        \"2020-03-11\": {\n            \"confirmed\": 62,\n            \"deaths\": 1,\n            \"recovered\": 4\n        },\n        \"2020-03-12\": {\n            \"confirmed\": 73,\n            \"deaths\": 1,\n            \"recovered\": 4\n        },\n        \"2020-03-13\": {\n            \"confirmed\": 82,\n            \"deaths\": 2,\n            \"recovered\": 4\n        },\n        \"2020-03-14\": {\n            \"confirmed\": 102,\n            \"deaths\": 2,\n            \"recovered\": 4\n        },\n        \"2020-03-15\": {\n            \"confirmed\": 113,\n            \"deaths\": 2,\n            \"recovered\": 13\n        },\n        \"2020-03-16\": {\n            \"confirmed\": 119,\n            \"deaths\": 2,\n            \"recovered\": 13\n        },\n        \"2020-03-17\": {\n            \"confirmed\": 142,\n            \"deaths\": 3,\n            \"recovered\": 14\n        },\n        \"2020-03-18\": {\n            \"confirmed\": 156,\n            \"deaths\": 3,\n            \"recovered\": 14\n        },\n        \"2020-03-19\": {\n            \"confirmed\": 194,\n            \"deaths\": 4,\n            \"recovered\": 15\n        },\n        \"2020-03-20\": {\n            \"confirmed\": 244,\n            \"deaths\": 5,\n            \"recovered\": 20\n        }\n    }\n}"}],"_postman_id":"38f0b8cf-e95e-4aa3-bb09-a1ca4b73135f"},{"name":"Step 2: add the visualizer","event":[{"listen":"test","script":{"id":"bac79026-dfbd-4ff2-9a29-35897888e6ae","exec":["// Set visualizer","pm.visualizer.set(template, {","    // Pass the response body parsed as JSON as `data`","    response: pm.response.json()","});",""],"type":"text/javascript"}},{"listen":"prerequest","script":{"id":"a77e94ed-7b66-461b-a8b3-cc79cf2ad435","exec":[""],"type":"text/javascript"}}],"id":"6869081e-06cd-4bf2-8b58-8ad1744e6082","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"body":{"mode":"raw","raw":""},"url":"https://covidapi.info/api/v1/country/USA","description":"<h3 id=\"youtube-video\">YouTube video</h3>\n<p><strong><a href=\"https://youtu.be/YzLKvdIGfxg\">Step 2 - add the visualizer</a></strong></p>\n<hr />\n<p>Let's use the Postman docs to learn <a href=\"https://learning.postman.com/docs/postman/sending-api-requests/visualizer/\">how to visualize our response data</a>. </p>\n<p>Under the <strong>Tests</strong> tab, add this code to set the visualizer.</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>// Set visualizer\npm.visualizer.set(template, {\n    // Pass the response body parsed as JSON as `data`\n    response: pm.response.json()\n});\n</code></pre><p>The <a href=\"https://learning.postman.com/docs/postman/scripts/postman-sandbox-api-reference/#pm\"><strong>pm</strong> object</a> contains a bunch of information and functions related to the script being executed. It's available in the <a href=\"https://learning.postman.com/docs/postman/scripts/postman-sandbox-api-reference\">Postman Sandbox</a> that we talked about in the previous step. </p>\n<p>In this example, we're using the <code>pm.visualizer.set()</code> method to apply the visualizer code that we will write in the next step, and then display it in the <strong>Visualize</strong> tab of our response after we run the request. This method takes three parameters.</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Parameter</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>layout</code></td>\n<td>(required) an HTML template string of the front-end view we want to render</td>\n</tr>\n<tr>\n<td><code>data</code></td>\n<td>(optional) data object that you can bind to the template; the properties of this object can be accessed in the template</td>\n</tr>\n<tr>\n<td><code>options</code></td>\n<td>(optional) options object to control how <a href=\"https://handlebarsjs.com/\">Handlebars</a> compiles the template</td>\n</tr>\n</tbody>\n</table>\n</div><p>Let's dig into these parameters in the next steps.</p>\n<p>Don't hit Send yet!</p>\n","urlObject":{"protocol":"https","path":["api","v1","country","USA"],"host":["covidapi","info"],"query":[],"variable":[]}},"response":[{"id":"a16fa60e-bc68-4418-967c-0159f83e6bdd","name":"Country specific historic data","originalRequest":{"method":"GET","header":[],"url":"https://covidapi.info/api/v1/country/IND"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.14.0 (Ubuntu)"},{"key":"Date","value":"Sun, 22 Mar 2020 07:46:33 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Expires","value":"Sun, 22 Mar 2020 15:46:33 GMT"},{"key":"Cache-Control","value":"max-age=28800"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n    \"count\": 59,\n    \"result\": {\n        \"2020-01-22\": {\n            \"confirmed\": 0,\n            \"deaths\": 0,\n            \"recovered\": 0\n        },\n        \"2020-01-23\": {\n            \"confirmed\": 0,\n            \"deaths\": 0,\n            \"recovered\": 0\n        },\n        \"2020-01-24\": {\n            \"confirmed\": 0,\n            \"deaths\": 0,\n            \"recovered\": 0\n        },\n        \"2020-01-25\": {\n            \"confirmed\": 0,\n            \"deaths\": 0,\n            \"recovered\": 0\n        },\n        \"2020-01-26\": {\n            \"confirmed\": 0,\n            \"deaths\": 0,\n            \"recovered\": 0\n        },\n        \"2020-01-27\": {\n            \"confirmed\": 0,\n            \"deaths\": 0,\n            \"recovered\": 0\n        },\n        \"2020-01-28\": {\n            \"confirmed\": 0,\n            \"deaths\": 0,\n            \"recovered\": 0\n        },\n        \"2020-01-29\": {\n            \"confirmed\": 0,\n            \"deaths\": 0,\n            \"recovered\": 0\n        },\n        \"2020-01-30\": {\n            \"confirmed\": 1,\n            \"deaths\": 0,\n            \"recovered\": 0\n        },\n        \"2020-01-31\": {\n            \"confirmed\": 1,\n            \"deaths\": 0,\n            \"recovered\": 0\n        },\n        \"2020-02-01\": {\n            \"confirmed\": 1,\n            \"deaths\": 0,\n            \"recovered\": 0\n        },\n        \"2020-02-02\": {\n            \"confirmed\": 2,\n            \"deaths\": 0,\n            \"recovered\": 0\n        },\n        \"2020-02-03\": {\n            \"confirmed\": 3,\n            \"deaths\": 0,\n            \"recovered\": 0\n        },\n        \"2020-02-04\": {\n            \"confirmed\": 3,\n            \"deaths\": 0,\n            \"recovered\": 0\n        },\n        \"2020-02-05\": {\n            \"confirmed\": 3,\n            \"deaths\": 0,\n            \"recovered\": 0\n        },\n        \"2020-02-06\": {\n            \"confirmed\": 3,\n            \"deaths\": 0,\n            \"recovered\": 0\n        },\n        \"2020-02-07\": {\n            \"confirmed\": 3,\n            \"deaths\": 0,\n            \"recovered\": 0\n        },\n        \"2020-02-08\": {\n            \"confirmed\": 3,\n            \"deaths\": 0,\n            \"recovered\": 0\n        },\n        \"2020-02-09\": {\n            \"confirmed\": 3,\n            \"deaths\": 0,\n            \"recovered\": 0\n        },\n        \"2020-02-10\": {\n            \"confirmed\": 3,\n            \"deaths\": 0,\n            \"recovered\": 0\n        },\n        \"2020-02-11\": {\n            \"confirmed\": 3,\n            \"deaths\": 0,\n            \"recovered\": 0\n        },\n        \"2020-02-12\": {\n            \"confirmed\": 3,\n            \"deaths\": 0,\n            \"recovered\": 0\n        },\n        \"2020-02-13\": {\n            \"confirmed\": 3,\n            \"deaths\": 0,\n            \"recovered\": 0\n        },\n        \"2020-02-14\": {\n            \"confirmed\": 3,\n            \"deaths\": 0,\n            \"recovered\": 0\n        },\n        \"2020-02-15\": {\n            \"confirmed\": 3,\n            \"deaths\": 0,\n            \"recovered\": 0\n        },\n        \"2020-02-16\": {\n            \"confirmed\": 3,\n            \"deaths\": 0,\n            \"recovered\": 3\n        },\n        \"2020-02-17\": {\n            \"confirmed\": 3,\n            \"deaths\": 0,\n            \"recovered\": 3\n        },\n        \"2020-02-18\": {\n            \"confirmed\": 3,\n            \"deaths\": 0,\n            \"recovered\": 3\n        },\n        \"2020-02-19\": {\n            \"confirmed\": 3,\n            \"deaths\": 0,\n            \"recovered\": 3\n        },\n        \"2020-02-20\": {\n            \"confirmed\": 3,\n            \"deaths\": 0,\n            \"recovered\": 3\n        },\n        \"2020-02-21\": {\n            \"confirmed\": 3,\n            \"deaths\": 0,\n            \"recovered\": 3\n        },\n        \"2020-02-22\": {\n            \"confirmed\": 3,\n            \"deaths\": 0,\n            \"recovered\": 3\n        },\n        \"2020-02-23\": {\n            \"confirmed\": 3,\n            \"deaths\": 0,\n            \"recovered\": 3\n        },\n        \"2020-02-24\": {\n            \"confirmed\": 3,\n            \"deaths\": 0,\n            \"recovered\": 3\n        },\n        \"2020-02-25\": {\n            \"confirmed\": 3,\n            \"deaths\": 0,\n            \"recovered\": 3\n        },\n        \"2020-02-26\": {\n            \"confirmed\": 3,\n            \"deaths\": 0,\n            \"recovered\": 3\n        },\n        \"2020-02-27\": {\n            \"confirmed\": 3,\n            \"deaths\": 0,\n            \"recovered\": 3\n        },\n        \"2020-02-28\": {\n            \"confirmed\": 3,\n            \"deaths\": 0,\n            \"recovered\": 3\n        },\n        \"2020-02-29\": {\n            \"confirmed\": 3,\n            \"deaths\": 0,\n            \"recovered\": 3\n        },\n        \"2020-03-01\": {\n            \"confirmed\": 3,\n            \"deaths\": 0,\n            \"recovered\": 3\n        },\n        \"2020-03-02\": {\n            \"confirmed\": 5,\n            \"deaths\": 0,\n            \"recovered\": 3\n        },\n        \"2020-03-03\": {\n            \"confirmed\": 5,\n            \"deaths\": 0,\n            \"recovered\": 3\n        },\n        \"2020-03-04\": {\n            \"confirmed\": 28,\n            \"deaths\": 0,\n            \"recovered\": 3\n        },\n        \"2020-03-05\": {\n            \"confirmed\": 30,\n            \"deaths\": 0,\n            \"recovered\": 3\n        },\n        \"2020-03-06\": {\n            \"confirmed\": 31,\n            \"deaths\": 0,\n            \"recovered\": 3\n        },\n        \"2020-03-07\": {\n            \"confirmed\": 34,\n            \"deaths\": 0,\n            \"recovered\": 3\n        },\n        \"2020-03-08\": {\n            \"confirmed\": 39,\n            \"deaths\": 0,\n            \"recovered\": 3\n        },\n        \"2020-03-09\": {\n            \"confirmed\": 43,\n            \"deaths\": 0,\n            \"recovered\": 3\n        },\n        \"2020-03-10\": {\n            \"confirmed\": 56,\n            \"deaths\": 0,\n            \"recovered\": 4\n        },\n        \"2020-03-11\": {\n            \"confirmed\": 62,\n            \"deaths\": 1,\n            \"recovered\": 4\n        },\n        \"2020-03-12\": {\n            \"confirmed\": 73,\n            \"deaths\": 1,\n            \"recovered\": 4\n        },\n        \"2020-03-13\": {\n            \"confirmed\": 82,\n            \"deaths\": 2,\n            \"recovered\": 4\n        },\n        \"2020-03-14\": {\n            \"confirmed\": 102,\n            \"deaths\": 2,\n            \"recovered\": 4\n        },\n        \"2020-03-15\": {\n            \"confirmed\": 113,\n            \"deaths\": 2,\n            \"recovered\": 13\n        },\n        \"2020-03-16\": {\n            \"confirmed\": 119,\n            \"deaths\": 2,\n            \"recovered\": 13\n        },\n        \"2020-03-17\": {\n            \"confirmed\": 142,\n            \"deaths\": 3,\n            \"recovered\": 14\n        },\n        \"2020-03-18\": {\n            \"confirmed\": 156,\n            \"deaths\": 3,\n            \"recovered\": 14\n        },\n        \"2020-03-19\": {\n            \"confirmed\": 194,\n            \"deaths\": 4,\n            \"recovered\": 15\n        },\n        \"2020-03-20\": {\n            \"confirmed\": 244,\n            \"deaths\": 5,\n            \"recovered\": 20\n        }\n    }\n}"}],"_postman_id":"6869081e-06cd-4bf2-8b58-8ad1744e6082"},{"name":"Step 3: add the layout","event":[{"listen":"test","script":{"id":"bac79026-dfbd-4ff2-9a29-35897888e6ae","exec":["// add a template string of the front-end view we want to render","let template = `","    <h1>Template guts</h1>","    <p>Oh, hey I'm inside the template now!!👋</p>","`;","","// Set visualizer","pm.visualizer.set(template, {","    // Pass the response body parsed as JSON as `data`","    response: pm.response.json()","});",""],"type":"text/javascript"}},{"listen":"prerequest","script":{"id":"a77e94ed-7b66-461b-a8b3-cc79cf2ad435","exec":[""],"type":"text/javascript"}}],"id":"b14dcff0-fa99-410d-9f52-917407b3eb24","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"body":{"mode":"raw","raw":""},"url":"https://covidapi.info/api/v1/country/USA","description":"<h3 id=\"youtube-video\">YouTube video</h3>\n<p><strong><a href=\"https://youtu.be/mXa-aMgu3LA\">Step 3 add the layout</a></strong></p>\n<hr />\n<p>We're still using the Postman docs to learn <a href=\"https://learning.postman.com/docs/postman/sending-api-requests/visualizer/\">how to visualize our response data</a>. Now that we've added <code>pm.visualizer.set()</code> under the <strong>Tests</strong> tab, let's take a look at the first (and only required) parameter. </p>\n<blockquote>\n<p><code>layout</code> - (required) an HTML template string of the front-end view we want to render</p>\n</blockquote>\n<p>In our example code, we see a placeholder <code>template</code> as the first parameter in <code>pm.visualizer.set()</code>. We haven't initialized that variable yet. Above this code, add a variable called <code>template</code> as an empty string.</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>let template = ``;\n\n// Set visualizer\npm.visualizer.set(template, {\n    // Pass the response body parsed as JSON as `data`\n    response: pm.response.json()\n});\n</code></pre><p>Inside the template string, add some HTML elements like header, text, or an image.</p>\n<p>Hit <strong>Send</strong>, and take a look at the <strong>Visualize</strong> tab of our response after we run the request. You should see something like this.</p>\n<p><img src=\"https://i.imgur.com/ct7cYtB.png\" alt=\"[screenshot layout](https://i.imgur.com/ct7cYtB.png)\" /></p>\n<p>This is good, but we haven't passed any data to our template yet. Let's forge ahead!</p>\n","urlObject":{"protocol":"https","path":["api","v1","country","USA"],"host":["covidapi","info"],"query":[],"variable":[]}},"response":[{"id":"c39b505d-f866-4bdd-bc77-9acfa00d13fe","name":"Country specific historic data","originalRequest":{"method":"GET","header":[],"url":"https://covidapi.info/api/v1/country/IND"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.14.0 (Ubuntu)"},{"key":"Date","value":"Sun, 22 Mar 2020 07:46:33 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Expires","value":"Sun, 22 Mar 2020 15:46:33 GMT"},{"key":"Cache-Control","value":"max-age=28800"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n    \"count\": 59,\n    \"result\": {\n        \"2020-01-22\": {\n            \"confirmed\": 0,\n            \"deaths\": 0,\n            \"recovered\": 0\n        },\n        \"2020-01-23\": {\n            \"confirmed\": 0,\n            \"deaths\": 0,\n            \"recovered\": 0\n        },\n        \"2020-01-24\": {\n            \"confirmed\": 0,\n            \"deaths\": 0,\n            \"recovered\": 0\n        },\n        \"2020-01-25\": {\n            \"confirmed\": 0,\n            \"deaths\": 0,\n            \"recovered\": 0\n        },\n        \"2020-01-26\": {\n            \"confirmed\": 0,\n            \"deaths\": 0,\n            \"recovered\": 0\n        },\n        \"2020-01-27\": {\n            \"confirmed\": 0,\n            \"deaths\": 0,\n            \"recovered\": 0\n        },\n        \"2020-01-28\": {\n            \"confirmed\": 0,\n            \"deaths\": 0,\n            \"recovered\": 0\n        },\n        \"2020-01-29\": {\n            \"confirmed\": 0,\n            \"deaths\": 0,\n            \"recovered\": 0\n        },\n        \"2020-01-30\": {\n            \"confirmed\": 1,\n            \"deaths\": 0,\n            \"recovered\": 0\n        },\n        \"2020-01-31\": {\n            \"confirmed\": 1,\n            \"deaths\": 0,\n            \"recovered\": 0\n        },\n        \"2020-02-01\": {\n            \"confirmed\": 1,\n            \"deaths\": 0,\n            \"recovered\": 0\n        },\n        \"2020-02-02\": {\n            \"confirmed\": 2,\n            \"deaths\": 0,\n            \"recovered\": 0\n        },\n        \"2020-02-03\": {\n            \"confirmed\": 3,\n            \"deaths\": 0,\n            \"recovered\": 0\n        },\n        \"2020-02-04\": {\n            \"confirmed\": 3,\n            \"deaths\": 0,\n            \"recovered\": 0\n        },\n        \"2020-02-05\": {\n            \"confirmed\": 3,\n            \"deaths\": 0,\n            \"recovered\": 0\n        },\n        \"2020-02-06\": {\n            \"confirmed\": 3,\n            \"deaths\": 0,\n            \"recovered\": 0\n        },\n        \"2020-02-07\": {\n            \"confirmed\": 3,\n            \"deaths\": 0,\n            \"recovered\": 0\n        },\n        \"2020-02-08\": {\n            \"confirmed\": 3,\n            \"deaths\": 0,\n            \"recovered\": 0\n        },\n        \"2020-02-09\": {\n            \"confirmed\": 3,\n            \"deaths\": 0,\n            \"recovered\": 0\n        },\n        \"2020-02-10\": {\n            \"confirmed\": 3,\n            \"deaths\": 0,\n            \"recovered\": 0\n        },\n        \"2020-02-11\": {\n            \"confirmed\": 3,\n            \"deaths\": 0,\n            \"recovered\": 0\n        },\n        \"2020-02-12\": {\n            \"confirmed\": 3,\n            \"deaths\": 0,\n            \"recovered\": 0\n        },\n        \"2020-02-13\": {\n            \"confirmed\": 3,\n            \"deaths\": 0,\n            \"recovered\": 0\n        },\n        \"2020-02-14\": {\n            \"confirmed\": 3,\n            \"deaths\": 0,\n            \"recovered\": 0\n        },\n        \"2020-02-15\": {\n            \"confirmed\": 3,\n            \"deaths\": 0,\n            \"recovered\": 0\n        },\n        \"2020-02-16\": {\n            \"confirmed\": 3,\n            \"deaths\": 0,\n            \"recovered\": 3\n        },\n        \"2020-02-17\": {\n            \"confirmed\": 3,\n            \"deaths\": 0,\n            \"recovered\": 3\n        },\n        \"2020-02-18\": {\n            \"confirmed\": 3,\n            \"deaths\": 0,\n            \"recovered\": 3\n        },\n        \"2020-02-19\": {\n            \"confirmed\": 3,\n            \"deaths\": 0,\n            \"recovered\": 3\n        },\n        \"2020-02-20\": {\n            \"confirmed\": 3,\n            \"deaths\": 0,\n            \"recovered\": 3\n        },\n        \"2020-02-21\": {\n            \"confirmed\": 3,\n            \"deaths\": 0,\n            \"recovered\": 3\n        },\n        \"2020-02-22\": {\n            \"confirmed\": 3,\n            \"deaths\": 0,\n            \"recovered\": 3\n        },\n        \"2020-02-23\": {\n            \"confirmed\": 3,\n            \"deaths\": 0,\n            \"recovered\": 3\n        },\n        \"2020-02-24\": {\n            \"confirmed\": 3,\n            \"deaths\": 0,\n            \"recovered\": 3\n        },\n        \"2020-02-25\": {\n            \"confirmed\": 3,\n            \"deaths\": 0,\n            \"recovered\": 3\n        },\n        \"2020-02-26\": {\n            \"confirmed\": 3,\n            \"deaths\": 0,\n            \"recovered\": 3\n        },\n        \"2020-02-27\": {\n            \"confirmed\": 3,\n            \"deaths\": 0,\n            \"recovered\": 3\n        },\n        \"2020-02-28\": {\n            \"confirmed\": 3,\n            \"deaths\": 0,\n            \"recovered\": 3\n        },\n        \"2020-02-29\": {\n            \"confirmed\": 3,\n            \"deaths\": 0,\n            \"recovered\": 3\n        },\n        \"2020-03-01\": {\n            \"confirmed\": 3,\n            \"deaths\": 0,\n            \"recovered\": 3\n        },\n        \"2020-03-02\": {\n            \"confirmed\": 5,\n            \"deaths\": 0,\n            \"recovered\": 3\n        },\n        \"2020-03-03\": {\n            \"confirmed\": 5,\n            \"deaths\": 0,\n            \"recovered\": 3\n        },\n        \"2020-03-04\": {\n            \"confirmed\": 28,\n            \"deaths\": 0,\n            \"recovered\": 3\n        },\n        \"2020-03-05\": {\n            \"confirmed\": 30,\n            \"deaths\": 0,\n            \"recovered\": 3\n        },\n        \"2020-03-06\": {\n            \"confirmed\": 31,\n            \"deaths\": 0,\n            \"recovered\": 3\n        },\n        \"2020-03-07\": {\n            \"confirmed\": 34,\n            \"deaths\": 0,\n            \"recovered\": 3\n        },\n        \"2020-03-08\": {\n            \"confirmed\": 39,\n            \"deaths\": 0,\n            \"recovered\": 3\n        },\n        \"2020-03-09\": {\n            \"confirmed\": 43,\n            \"deaths\": 0,\n            \"recovered\": 3\n        },\n        \"2020-03-10\": {\n            \"confirmed\": 56,\n            \"deaths\": 0,\n            \"recovered\": 4\n        },\n        \"2020-03-11\": {\n            \"confirmed\": 62,\n            \"deaths\": 1,\n            \"recovered\": 4\n        },\n        \"2020-03-12\": {\n            \"confirmed\": 73,\n            \"deaths\": 1,\n            \"recovered\": 4\n        },\n        \"2020-03-13\": {\n            \"confirmed\": 82,\n            \"deaths\": 2,\n            \"recovered\": 4\n        },\n        \"2020-03-14\": {\n            \"confirmed\": 102,\n            \"deaths\": 2,\n            \"recovered\": 4\n        },\n        \"2020-03-15\": {\n            \"confirmed\": 113,\n            \"deaths\": 2,\n            \"recovered\": 13\n        },\n        \"2020-03-16\": {\n            \"confirmed\": 119,\n            \"deaths\": 2,\n            \"recovered\": 13\n        },\n        \"2020-03-17\": {\n            \"confirmed\": 142,\n            \"deaths\": 3,\n            \"recovered\": 14\n        },\n        \"2020-03-18\": {\n            \"confirmed\": 156,\n            \"deaths\": 3,\n            \"recovered\": 14\n        },\n        \"2020-03-19\": {\n            \"confirmed\": 194,\n            \"deaths\": 4,\n            \"recovered\": 15\n        },\n        \"2020-03-20\": {\n            \"confirmed\": 244,\n            \"deaths\": 5,\n            \"recovered\": 20\n        }\n    }\n}"}],"_postman_id":"b14dcff0-fa99-410d-9f52-917407b3eb24"},{"name":"Step 4: pass the data","event":[{"listen":"test","script":{"id":"bac79026-dfbd-4ff2-9a29-35897888e6ae","exec":["// add a template string of the front-end view we want to render","let template = `","    {{#each response.result}}","        {{@key}} <br>","    {{/each}}","`;","","// Set visualizer","pm.visualizer.set(template, {","    // Pass the response body parsed as JSON as `data`","    response: pm.response.json()","});",""],"type":"text/javascript"}},{"listen":"prerequest","script":{"id":"a77e94ed-7b66-461b-a8b3-cc79cf2ad435","exec":[""],"type":"text/javascript"}}],"id":"7364c669-5b59-49da-bb8f-ec3f78698a65","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"body":{"mode":"raw","raw":""},"url":"https://covidapi.info/api/v1/country/USA","description":"<h3 id=\"youtube-video\">YouTube video</h3>\n<p><strong><a href=\"https://youtu.be/bKthVPXmndA\">Step 4 - pass the data</a></strong></p>\n<hr />\n<p>We're still using the Postman docs to learn <a href=\"https://learning.postman.com/docs/postman/sending-api-requests/visualizer/\">how to visualize our response data</a>. Now that we've added <code>pm.visualizer.set()</code> and defined an initial layout for our front-end view, let's take a look at the second parameter. </p>\n<blockquote>\n<p><code>data</code> - (optional) data object that you can bind to the template; the properties of this object can be accessed in the template</p>\n</blockquote>\n<p>In our example code, we see a placeholder for the second parameter in <code>pm.visualizer.set()</code>. Once again, we are using the <a href=\"https://learning.postman.com/docs/postman/scripts/postman-sandbox-api-reference/#pm\"><strong>pm</strong> object</a> in the <a href=\"https://learning.postman.com/docs/postman/scripts/postman-sandbox-api-reference\">Postman Sandbox</a>. This time, <code>pm.response.json()</code> captures the response returned from the API so we can parse the response body as JSON.</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>pm.visualizer.set(template, {\n    // Pass the response body parsed as JSON as `data`\n    response: pm.response.json()\n});\n</code></pre><p>In the string template where we define our front-end layout, the <a href=\"https://handlebarsjs.com/\">Handlebars</a> templating engine is built in to help us render the data returned from our API. Use the double curly braces to wrap a Handlebars expression like <code>{{expression}}</code>. </p>\n<p>This is what our data looks like coming back from our API.</p>\n<p><img src=\"https://i.imgur.com/puwCfwz.png\" alt=\"[screenshot JSON response](https://i.imgur.com/puwCfwz.png)\" /></p>\n<p>For this example, use Handlebars <a href=\"https://handlebarsjs.com/guide/builtin-helpers.html#each\"><code>each</code></a> in our template string to loop through each item of the response body. We are looping through <code>response.result</code> because <code>response</code> is the property name we used in <code>pm.visualizer.set()</code> and <code>result</code> is the property name from the response body returned from our API. Use Handlebars <code>{{@key}}</code> to reference the current key name, which will be a date. And then add an HTML line break tag <code>&lt;br&gt;</code> to list each date on a new line.</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>let template = `\n    {{#each response.result}}\n        {{@key}} &lt;br&gt;\n    {{/each}}\n`;\n</code></pre><p>Hit <strong>Send</strong>, and take a look at the <strong>Visualize</strong> tab of our response. You should see something like this.</p>\n<p><img src=\"https://i.imgur.com/O5gliOm.png\" alt=\"[screenshot layout](https://i.imgur.com/O5gliOm.png)\" /></p>\n<p>This is progress, but if you're a front-end developer or designer, you're probably thinking - oh how ugly! Let's keep going.</p>\n","urlObject":{"protocol":"https","path":["api","v1","country","USA"],"host":["covidapi","info"],"query":[],"variable":[]}},"response":[{"id":"169d808a-1933-4f2b-b48a-431c34a5b299","name":"Country specific historic data","originalRequest":{"method":"GET","header":[],"url":"https://covidapi.info/api/v1/country/IND"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.14.0 (Ubuntu)"},{"key":"Date","value":"Sun, 22 Mar 2020 07:46:33 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Expires","value":"Sun, 22 Mar 2020 15:46:33 GMT"},{"key":"Cache-Control","value":"max-age=28800"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n    \"count\": 59,\n    \"result\": {\n        \"2020-01-22\": {\n            \"confirmed\": 0,\n            \"deaths\": 0,\n            \"recovered\": 0\n        },\n        \"2020-01-23\": {\n            \"confirmed\": 0,\n            \"deaths\": 0,\n            \"recovered\": 0\n        },\n        \"2020-01-24\": {\n            \"confirmed\": 0,\n            \"deaths\": 0,\n            \"recovered\": 0\n        },\n        \"2020-01-25\": {\n            \"confirmed\": 0,\n            \"deaths\": 0,\n            \"recovered\": 0\n        },\n        \"2020-01-26\": {\n            \"confirmed\": 0,\n            \"deaths\": 0,\n            \"recovered\": 0\n        },\n        \"2020-01-27\": {\n            \"confirmed\": 0,\n            \"deaths\": 0,\n            \"recovered\": 0\n        },\n        \"2020-01-28\": {\n            \"confirmed\": 0,\n            \"deaths\": 0,\n            \"recovered\": 0\n        },\n        \"2020-01-29\": {\n            \"confirmed\": 0,\n            \"deaths\": 0,\n            \"recovered\": 0\n        },\n        \"2020-01-30\": {\n            \"confirmed\": 1,\n            \"deaths\": 0,\n            \"recovered\": 0\n        },\n        \"2020-01-31\": {\n            \"confirmed\": 1,\n            \"deaths\": 0,\n            \"recovered\": 0\n        },\n        \"2020-02-01\": {\n            \"confirmed\": 1,\n            \"deaths\": 0,\n            \"recovered\": 0\n        },\n        \"2020-02-02\": {\n            \"confirmed\": 2,\n            \"deaths\": 0,\n            \"recovered\": 0\n        },\n        \"2020-02-03\": {\n            \"confirmed\": 3,\n            \"deaths\": 0,\n            \"recovered\": 0\n        },\n        \"2020-02-04\": {\n            \"confirmed\": 3,\n            \"deaths\": 0,\n            \"recovered\": 0\n        },\n        \"2020-02-05\": {\n            \"confirmed\": 3,\n            \"deaths\": 0,\n            \"recovered\": 0\n        },\n        \"2020-02-06\": {\n            \"confirmed\": 3,\n            \"deaths\": 0,\n            \"recovered\": 0\n        },\n        \"2020-02-07\": {\n            \"confirmed\": 3,\n            \"deaths\": 0,\n            \"recovered\": 0\n        },\n        \"2020-02-08\": {\n            \"confirmed\": 3,\n            \"deaths\": 0,\n            \"recovered\": 0\n        },\n        \"2020-02-09\": {\n            \"confirmed\": 3,\n            \"deaths\": 0,\n            \"recovered\": 0\n        },\n        \"2020-02-10\": {\n            \"confirmed\": 3,\n            \"deaths\": 0,\n            \"recovered\": 0\n        },\n        \"2020-02-11\": {\n            \"confirmed\": 3,\n            \"deaths\": 0,\n            \"recovered\": 0\n        },\n        \"2020-02-12\": {\n            \"confirmed\": 3,\n            \"deaths\": 0,\n            \"recovered\": 0\n        },\n        \"2020-02-13\": {\n            \"confirmed\": 3,\n            \"deaths\": 0,\n            \"recovered\": 0\n        },\n        \"2020-02-14\": {\n            \"confirmed\": 3,\n            \"deaths\": 0,\n            \"recovered\": 0\n        },\n        \"2020-02-15\": {\n            \"confirmed\": 3,\n            \"deaths\": 0,\n            \"recovered\": 0\n        },\n        \"2020-02-16\": {\n            \"confirmed\": 3,\n            \"deaths\": 0,\n            \"recovered\": 3\n        },\n        \"2020-02-17\": {\n            \"confirmed\": 3,\n            \"deaths\": 0,\n            \"recovered\": 3\n        },\n        \"2020-02-18\": {\n            \"confirmed\": 3,\n            \"deaths\": 0,\n            \"recovered\": 3\n        },\n        \"2020-02-19\": {\n            \"confirmed\": 3,\n            \"deaths\": 0,\n            \"recovered\": 3\n        },\n        \"2020-02-20\": {\n            \"confirmed\": 3,\n            \"deaths\": 0,\n            \"recovered\": 3\n        },\n        \"2020-02-21\": {\n            \"confirmed\": 3,\n            \"deaths\": 0,\n            \"recovered\": 3\n        },\n        \"2020-02-22\": {\n            \"confirmed\": 3,\n            \"deaths\": 0,\n            \"recovered\": 3\n        },\n        \"2020-02-23\": {\n            \"confirmed\": 3,\n            \"deaths\": 0,\n            \"recovered\": 3\n        },\n        \"2020-02-24\": {\n            \"confirmed\": 3,\n            \"deaths\": 0,\n            \"recovered\": 3\n        },\n        \"2020-02-25\": {\n            \"confirmed\": 3,\n            \"deaths\": 0,\n            \"recovered\": 3\n        },\n        \"2020-02-26\": {\n            \"confirmed\": 3,\n            \"deaths\": 0,\n            \"recovered\": 3\n        },\n        \"2020-02-27\": {\n            \"confirmed\": 3,\n            \"deaths\": 0,\n            \"recovered\": 3\n        },\n        \"2020-02-28\": {\n            \"confirmed\": 3,\n            \"deaths\": 0,\n            \"recovered\": 3\n        },\n        \"2020-02-29\": {\n            \"confirmed\": 3,\n            \"deaths\": 0,\n            \"recovered\": 3\n        },\n        \"2020-03-01\": {\n            \"confirmed\": 3,\n            \"deaths\": 0,\n            \"recovered\": 3\n        },\n        \"2020-03-02\": {\n            \"confirmed\": 5,\n            \"deaths\": 0,\n            \"recovered\": 3\n        },\n        \"2020-03-03\": {\n            \"confirmed\": 5,\n            \"deaths\": 0,\n            \"recovered\": 3\n        },\n        \"2020-03-04\": {\n            \"confirmed\": 28,\n            \"deaths\": 0,\n            \"recovered\": 3\n        },\n        \"2020-03-05\": {\n            \"confirmed\": 30,\n            \"deaths\": 0,\n            \"recovered\": 3\n        },\n        \"2020-03-06\": {\n            \"confirmed\": 31,\n            \"deaths\": 0,\n            \"recovered\": 3\n        },\n        \"2020-03-07\": {\n            \"confirmed\": 34,\n            \"deaths\": 0,\n            \"recovered\": 3\n        },\n        \"2020-03-08\": {\n            \"confirmed\": 39,\n            \"deaths\": 0,\n            \"recovered\": 3\n        },\n        \"2020-03-09\": {\n            \"confirmed\": 43,\n            \"deaths\": 0,\n            \"recovered\": 3\n        },\n        \"2020-03-10\": {\n            \"confirmed\": 56,\n            \"deaths\": 0,\n            \"recovered\": 4\n        },\n        \"2020-03-11\": {\n            \"confirmed\": 62,\n            \"deaths\": 1,\n            \"recovered\": 4\n        },\n        \"2020-03-12\": {\n            \"confirmed\": 73,\n            \"deaths\": 1,\n            \"recovered\": 4\n        },\n        \"2020-03-13\": {\n            \"confirmed\": 82,\n            \"deaths\": 2,\n            \"recovered\": 4\n        },\n        \"2020-03-14\": {\n            \"confirmed\": 102,\n            \"deaths\": 2,\n            \"recovered\": 4\n        },\n        \"2020-03-15\": {\n            \"confirmed\": 113,\n            \"deaths\": 2,\n            \"recovered\": 13\n        },\n        \"2020-03-16\": {\n            \"confirmed\": 119,\n            \"deaths\": 2,\n            \"recovered\": 13\n        },\n        \"2020-03-17\": {\n            \"confirmed\": 142,\n            \"deaths\": 3,\n            \"recovered\": 14\n        },\n        \"2020-03-18\": {\n            \"confirmed\": 156,\n            \"deaths\": 3,\n            \"recovered\": 14\n        },\n        \"2020-03-19\": {\n            \"confirmed\": 194,\n            \"deaths\": 4,\n            \"recovered\": 15\n        },\n        \"2020-03-20\": {\n            \"confirmed\": 244,\n            \"deaths\": 5,\n            \"recovered\": 20\n        }\n    }\n}"}],"_postman_id":"7364c669-5b59-49da-bb8f-ec3f78698a65"},{"name":"Step 5: make it pretty","event":[{"listen":"test","script":{"id":"bac79026-dfbd-4ff2-9a29-35897888e6ae","exec":["// add a template string of the front-end view we want to render","let template = `","    <style>","    p {","        color: blue;","        font-weight: bold;","        border-bottom: 1px solid black;","    }","    </style>","","    {{#each response.result}}","        <p>{{@key}}</p> </br>","    {{/each}}","`;","","// Set visualizer","pm.visualizer.set(template, {","    // Pass the response body parsed as JSON as `data`","    response: pm.response.json()","});",""],"type":"text/javascript"}},{"listen":"prerequest","script":{"id":"a77e94ed-7b66-461b-a8b3-cc79cf2ad435","exec":[""],"type":"text/javascript"}}],"id":"714e6626-b5b1-45e0-bec2-f34a3fa0735d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"body":{"mode":"raw","raw":""},"url":"https://covidapi.info/api/v1/country/USA","description":"<h3 id=\"youtube-video\">YouTube video</h3>\n<p><strong><a href=\"https://youtu.be/bKthVPXmndA\">Step 5 - add the visualizer</a></strong></p>\n<hr />\n<p>We're still using the Postman docs to learn <a href=\"https://learning.postman.com/docs/postman/sending-api-requests/visualizer/\">how to visualize our response data</a>. We have a functioning visualization, but it's not very pretty and it's not very useful yet. So far, we've added a tiny bit of JavaScript and HTML to our layout template. There's a couple more steps we could take to really polish it up.</p>\n<ul>\n<li>Add more HTML</li>\n<li>Add CSS using <code>&lt;style&gt;</code> tags or <code>&lt;link&gt;</code> to external stylesheets from within your template</li>\n<li>Add JavaScript interactions or external libraries using <code>&lt;script&gt;</code> tags inside your template</li>\n</ul>\n<p>Let's go ahead and add some HTML and CSS to our template string. In this example, I added paragraph tags <code>&lt;p&gt;</code>, and then CSS within <code>&lt;style&gt;</code> tags to style my paragraph elements. Hit <strong>Send</strong>, and see how our visualization has changed.</p>\n<p><img src=\"https://i.imgur.com/p4DVbeM.png\" alt=\"[screenshot CSS](https://i.imgur.com/p4DVbeM.png)\" /></p>\n<p>Do you feel pretty?</p>\n<p>Right-click on the visualization, and select <strong>Inspect visualization</strong> to open <strong>Developer Tools</strong>. In this new window, you can inspect elements in your HTML visualization, log console statements from within the defined template, and dig deeper into what's going on. </p>\n<p>Under the <strong>Elements</strong> tab of the Developer Tools, select an HTML element and update the CSS under <strong>Styles</strong> to see real-time updates to the HTML rendered under the <strong>Visualize</strong> tab in Postman.</p>\n<p><img src=\"https://i.imgur.com/npgUJ9D.png\" alt=\"[screenshot DevTools](https://i.imgur.com/npgUJ9D.png)\" /></p>\n<p>Neat, huh? Let's try adding more JavaScript next.</p>\n","urlObject":{"protocol":"https","path":["api","v1","country","USA"],"host":["covidapi","info"],"query":[],"variable":[]}},"response":[{"id":"17e9bc39-65c4-49cc-8c44-d94b4daab3d2","name":"Country specific historic data","originalRequest":{"method":"GET","header":[],"url":"https://covidapi.info/api/v1/country/IND"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.14.0 (Ubuntu)"},{"key":"Date","value":"Sun, 22 Mar 2020 07:46:33 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Expires","value":"Sun, 22 Mar 2020 15:46:33 GMT"},{"key":"Cache-Control","value":"max-age=28800"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n    \"count\": 59,\n    \"result\": {\n        \"2020-01-22\": {\n            \"confirmed\": 0,\n            \"deaths\": 0,\n            \"recovered\": 0\n        },\n        \"2020-01-23\": {\n            \"confirmed\": 0,\n            \"deaths\": 0,\n            \"recovered\": 0\n        },\n        \"2020-01-24\": {\n            \"confirmed\": 0,\n            \"deaths\": 0,\n            \"recovered\": 0\n        },\n        \"2020-01-25\": {\n            \"confirmed\": 0,\n            \"deaths\": 0,\n            \"recovered\": 0\n        },\n        \"2020-01-26\": {\n            \"confirmed\": 0,\n            \"deaths\": 0,\n            \"recovered\": 0\n        },\n        \"2020-01-27\": {\n            \"confirmed\": 0,\n            \"deaths\": 0,\n            \"recovered\": 0\n        },\n        \"2020-01-28\": {\n            \"confirmed\": 0,\n            \"deaths\": 0,\n            \"recovered\": 0\n        },\n        \"2020-01-29\": {\n            \"confirmed\": 0,\n            \"deaths\": 0,\n            \"recovered\": 0\n        },\n        \"2020-01-30\": {\n            \"confirmed\": 1,\n            \"deaths\": 0,\n            \"recovered\": 0\n        },\n        \"2020-01-31\": {\n            \"confirmed\": 1,\n            \"deaths\": 0,\n            \"recovered\": 0\n        },\n        \"2020-02-01\": {\n            \"confirmed\": 1,\n            \"deaths\": 0,\n            \"recovered\": 0\n        },\n        \"2020-02-02\": {\n            \"confirmed\": 2,\n            \"deaths\": 0,\n            \"recovered\": 0\n        },\n        \"2020-02-03\": {\n            \"confirmed\": 3,\n            \"deaths\": 0,\n            \"recovered\": 0\n        },\n        \"2020-02-04\": {\n            \"confirmed\": 3,\n            \"deaths\": 0,\n            \"recovered\": 0\n        },\n        \"2020-02-05\": {\n            \"confirmed\": 3,\n            \"deaths\": 0,\n            \"recovered\": 0\n        },\n        \"2020-02-06\": {\n            \"confirmed\": 3,\n            \"deaths\": 0,\n            \"recovered\": 0\n        },\n        \"2020-02-07\": {\n            \"confirmed\": 3,\n            \"deaths\": 0,\n            \"recovered\": 0\n        },\n        \"2020-02-08\": {\n            \"confirmed\": 3,\n            \"deaths\": 0,\n            \"recovered\": 0\n        },\n        \"2020-02-09\": {\n            \"confirmed\": 3,\n            \"deaths\": 0,\n            \"recovered\": 0\n        },\n        \"2020-02-10\": {\n            \"confirmed\": 3,\n            \"deaths\": 0,\n            \"recovered\": 0\n        },\n        \"2020-02-11\": {\n            \"confirmed\": 3,\n            \"deaths\": 0,\n            \"recovered\": 0\n        },\n        \"2020-02-12\": {\n            \"confirmed\": 3,\n            \"deaths\": 0,\n            \"recovered\": 0\n        },\n        \"2020-02-13\": {\n            \"confirmed\": 3,\n            \"deaths\": 0,\n            \"recovered\": 0\n        },\n        \"2020-02-14\": {\n            \"confirmed\": 3,\n            \"deaths\": 0,\n            \"recovered\": 0\n        },\n        \"2020-02-15\": {\n            \"confirmed\": 3,\n            \"deaths\": 0,\n            \"recovered\": 0\n        },\n        \"2020-02-16\": {\n            \"confirmed\": 3,\n            \"deaths\": 0,\n            \"recovered\": 3\n        },\n        \"2020-02-17\": {\n            \"confirmed\": 3,\n            \"deaths\": 0,\n            \"recovered\": 3\n        },\n        \"2020-02-18\": {\n            \"confirmed\": 3,\n            \"deaths\": 0,\n            \"recovered\": 3\n        },\n        \"2020-02-19\": {\n            \"confirmed\": 3,\n            \"deaths\": 0,\n            \"recovered\": 3\n        },\n        \"2020-02-20\": {\n            \"confirmed\": 3,\n            \"deaths\": 0,\n            \"recovered\": 3\n        },\n        \"2020-02-21\": {\n            \"confirmed\": 3,\n            \"deaths\": 0,\n            \"recovered\": 3\n        },\n        \"2020-02-22\": {\n            \"confirmed\": 3,\n            \"deaths\": 0,\n            \"recovered\": 3\n        },\n        \"2020-02-23\": {\n            \"confirmed\": 3,\n            \"deaths\": 0,\n            \"recovered\": 3\n        },\n        \"2020-02-24\": {\n            \"confirmed\": 3,\n            \"deaths\": 0,\n            \"recovered\": 3\n        },\n        \"2020-02-25\": {\n            \"confirmed\": 3,\n            \"deaths\": 0,\n            \"recovered\": 3\n        },\n        \"2020-02-26\": {\n            \"confirmed\": 3,\n            \"deaths\": 0,\n            \"recovered\": 3\n        },\n        \"2020-02-27\": {\n            \"confirmed\": 3,\n            \"deaths\": 0,\n            \"recovered\": 3\n        },\n        \"2020-02-28\": {\n            \"confirmed\": 3,\n            \"deaths\": 0,\n            \"recovered\": 3\n        },\n        \"2020-02-29\": {\n            \"confirmed\": 3,\n            \"deaths\": 0,\n            \"recovered\": 3\n        },\n        \"2020-03-01\": {\n            \"confirmed\": 3,\n            \"deaths\": 0,\n            \"recovered\": 3\n        },\n        \"2020-03-02\": {\n            \"confirmed\": 5,\n            \"deaths\": 0,\n            \"recovered\": 3\n        },\n        \"2020-03-03\": {\n            \"confirmed\": 5,\n            \"deaths\": 0,\n            \"recovered\": 3\n        },\n        \"2020-03-04\": {\n            \"confirmed\": 28,\n            \"deaths\": 0,\n            \"recovered\": 3\n        },\n        \"2020-03-05\": {\n            \"confirmed\": 30,\n            \"deaths\": 0,\n            \"recovered\": 3\n        },\n        \"2020-03-06\": {\n            \"confirmed\": 31,\n            \"deaths\": 0,\n            \"recovered\": 3\n        },\n        \"2020-03-07\": {\n            \"confirmed\": 34,\n            \"deaths\": 0,\n            \"recovered\": 3\n        },\n        \"2020-03-08\": {\n            \"confirmed\": 39,\n            \"deaths\": 0,\n            \"recovered\": 3\n        },\n        \"2020-03-09\": {\n            \"confirmed\": 43,\n            \"deaths\": 0,\n            \"recovered\": 3\n        },\n        \"2020-03-10\": {\n            \"confirmed\": 56,\n            \"deaths\": 0,\n            \"recovered\": 4\n        },\n        \"2020-03-11\": {\n            \"confirmed\": 62,\n            \"deaths\": 1,\n            \"recovered\": 4\n        },\n        \"2020-03-12\": {\n            \"confirmed\": 73,\n            \"deaths\": 1,\n            \"recovered\": 4\n        },\n        \"2020-03-13\": {\n            \"confirmed\": 82,\n            \"deaths\": 2,\n            \"recovered\": 4\n        },\n        \"2020-03-14\": {\n            \"confirmed\": 102,\n            \"deaths\": 2,\n            \"recovered\": 4\n        },\n        \"2020-03-15\": {\n            \"confirmed\": 113,\n            \"deaths\": 2,\n            \"recovered\": 13\n        },\n        \"2020-03-16\": {\n            \"confirmed\": 119,\n            \"deaths\": 2,\n            \"recovered\": 13\n        },\n        \"2020-03-17\": {\n            \"confirmed\": 142,\n            \"deaths\": 3,\n            \"recovered\": 14\n        },\n        \"2020-03-18\": {\n            \"confirmed\": 156,\n            \"deaths\": 3,\n            \"recovered\": 14\n        },\n        \"2020-03-19\": {\n            \"confirmed\": 194,\n            \"deaths\": 4,\n            \"recovered\": 15\n        },\n        \"2020-03-20\": {\n            \"confirmed\": 244,\n            \"deaths\": 5,\n            \"recovered\": 20\n        }\n    }\n}"}],"_postman_id":"714e6626-b5b1-45e0-bec2-f34a3fa0735d"},{"name":"Step 6: make a line graph","event":[{"listen":"test","script":{"id":"bac79026-dfbd-4ff2-9a29-35897888e6ae","exec":["// add a template string of the front-end view we want to render","let template = `","    <script src=\"https://cdn.jsdelivr.net/npm/chart.js@2.8.0\"></script>","    <canvas id=\"myChart\"></canvas>","    <script>","        pm.getData( function (error, data) {","        ","            var ctx = document.getElementById('myChart').getContext('2d');","            var chart = new Chart(ctx, {","                // The type of chart we want to create","                type: 'line',","            ","                // The data for our dataset","                data: {","                    labels: Object.entries(data.response.result).map( (item) => item[0]),","                    datasets: [{","                        label: 'COVID timeseries for USA',","                        backgroundColor: 'rgb(255, 99, 132)',","                        borderColor: 'rgb(255, 99, 132)',","                        data: Object.entries(data.response.result).map( (item) => item[1].confirmed)","                    }]","                },","            ","                // Configuration options go here","                options: {}","            });","        });","    </script>","`;","","// Set visualizer","pm.visualizer.set(template, {","    // Pass the response body parsed as JSON as `data`","    response: pm.response.json()","});",""],"type":"text/javascript"}},{"listen":"prerequest","script":{"id":"a77e94ed-7b66-461b-a8b3-cc79cf2ad435","exec":[""],"type":"text/javascript"}}],"id":"bdbefa32-b68a-4d27-9f29-35c5e5c3b7c6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"body":{"mode":"raw","raw":""},"url":"https://covidapi.info/api/v1/country/USA","description":"<h3 id=\"youtube-video\">YouTube video</h3>\n<p><strong><a href=\"https://youtu.be/5K952EUbUDo\">Step 6 - make a line graph</a></strong></p>\n<hr />\n<p>We're still using the Postman docs to learn <a href=\"https://learning.postman.com/docs/postman/sending-api-requests/visualizer/\">how to visualize our response data</a>. We just learned how to style our visualization using HTML and CSS. Now, let's add some more JavaScript to add interactions or external libraries using <code>&lt;script&gt;</code> tags inside our template.</p>\n<p>If we revisit the data returned from our API, it would definitely be more interesting to visualize data over time, instead of this lovely but meaningless list of dates.</p>\n<p><img src=\"https://i.imgur.com/puwCfwz.png\" alt=\"[screenshot JSON response](https://i.imgur.com/puwCfwz.png)\" /></p>\n<p>To do this, we'll use the <a href=\"https://www.chartjs.org/\">Chart.js</a> library to make a line graph. Let's take a look at their <a href=\"https://www.chartjs.org/docs/latest/getting-started/\">getting started documentation</a>.</p>\n<blockquote>\n<p>First, we need to have a canvas in our page. Replace the current code in your template string with this HTML element.</p>\n</blockquote>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>&lt;canvas id=\"myChart\"&gt;&lt;/canvas&gt;\n</code></pre><blockquote>\n<p>Now that we have a canvas we can use, we need to include Chart.js in our page. Add this script to the beginning part of your template string.</p>\n</blockquote>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>&lt;script src=\"https://cdn.jsdelivr.net/npm/chart.js@2.8.0\"&gt;&lt;/script&gt;\n</code></pre><blockquote>\n<p>Now, we can create a chart. Add this script after your canvas element within your template string. Don't forget to surround this code block with an opening and closing <code>&lt;script&gt;</code> tag.</p>\n</blockquote>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>var ctx = document.getElementById('myChart').getContext('2d');\nvar chart = new Chart(ctx, {\n    // The type of chart we want to create\n    type: 'line',\n\n    // The data for our dataset\n    data: {\n        labels: ['January', 'February', 'March', 'April', 'May', 'June', 'July'],\n        datasets: [{\n            label: 'My First dataset',\n            backgroundColor: 'rgb(255, 99, 132)',\n            borderColor: 'rgb(255, 99, 132)',\n            data: [0, 10, 5, 2, 20, 30, 45]\n        }]\n    },\n\n    // Configuration options go here\n    options: {}\n});\n</code></pre><p>If you hit <strong>Send</strong> now, you can see a line chart under the <strong>Visualize</strong> tab that displays the data that's hard coded in the boilerplate snippet. In Step 4, we learned how to pass the data from <code>pm.visualizer.set()</code> to access the data within our HTML template using the Handlebars double curly braces. If we want to access this data from within a JavaScript <code>&lt;script</code>&gt;, we can use <code>pm.getData(callback)</code>.</p>\n<p>The <code>pm.getData(callback)</code> method takes a callback function as its parameter. This callback method accepts two parameters: <code>error</code> and <code>data</code>. The second parameter is the data that was passed through <code>pm.visualizer.set()</code>. Wrap this bit of code around the boilerplate snippet (still inside the <code>&lt;script&gt;</code> tags).</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>pm.getData( function (error, data) {\n    &lt;! Boilerplate JS to execute using the data passed through from `pm.visualizer.set()` ----&gt;\n}\n</code></pre><p>Now we have access to the data passed through from <code>pm.visualizer.set()</code>. In the boilerplate, we need to update <code>labels</code> for our data, as well as <code>label</code> and <code>data</code> for our datasets. Once again, we will parse the information passed through from <code>pm.visualizer.set()</code>. </p>\n<p>Chart.js expects the <code>labels</code> for our data and the <code>data</code> for our dataset to be formatted as arrays. So the label would be a date like <code>\"2020-01-22\"</code>, and the data for the dataset would be the corresponding value for that date.</p>\n<p>Update the array for the <code>labels</code> of our data. Here we are turning an object <code>data.response.result</code> into an array using <code>Object.entries()</code>, and then mapping each item in that array to return another array of the first property of each item. See if you can update <code>label</code> and <code>data</code> for our datasets on your own.</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>...\nlabels: Object.entries(data.response.result).map( (item) =&gt; item[0]),\n...\n</code></pre><p>Hit <strong>Send</strong>, and see the time series data for COVID cases under the <strong>Visualize</strong> tab of the response.</p>\n<p><img src=\"https://i.imgur.com/PGzdar5.png\" alt=\"[screenshot time series](https://i.imgur.com/PGzdar5.png)\" /></p>\n","urlObject":{"protocol":"https","path":["api","v1","country","USA"],"host":["covidapi","info"],"query":[],"variable":[]}},"response":[{"id":"0bc69f21-e223-443c-bec2-2900be11a18f","name":"Country specific historic data","originalRequest":{"method":"GET","header":[],"url":"https://covidapi.info/api/v1/country/IND"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.14.0 (Ubuntu)"},{"key":"Date","value":"Sun, 22 Mar 2020 07:46:33 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Expires","value":"Sun, 22 Mar 2020 15:46:33 GMT"},{"key":"Cache-Control","value":"max-age=28800"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n    \"count\": 59,\n    \"result\": {\n        \"2020-01-22\": {\n            \"confirmed\": 0,\n            \"deaths\": 0,\n            \"recovered\": 0\n        },\n        \"2020-01-23\": {\n            \"confirmed\": 0,\n            \"deaths\": 0,\n            \"recovered\": 0\n        },\n        \"2020-01-24\": {\n            \"confirmed\": 0,\n            \"deaths\": 0,\n            \"recovered\": 0\n        },\n        \"2020-01-25\": {\n            \"confirmed\": 0,\n            \"deaths\": 0,\n            \"recovered\": 0\n        },\n        \"2020-01-26\": {\n            \"confirmed\": 0,\n            \"deaths\": 0,\n            \"recovered\": 0\n        },\n        \"2020-01-27\": {\n            \"confirmed\": 0,\n            \"deaths\": 0,\n            \"recovered\": 0\n        },\n        \"2020-01-28\": {\n            \"confirmed\": 0,\n            \"deaths\": 0,\n            \"recovered\": 0\n        },\n        \"2020-01-29\": {\n            \"confirmed\": 0,\n            \"deaths\": 0,\n            \"recovered\": 0\n        },\n        \"2020-01-30\": {\n            \"confirmed\": 1,\n            \"deaths\": 0,\n            \"recovered\": 0\n        },\n        \"2020-01-31\": {\n            \"confirmed\": 1,\n            \"deaths\": 0,\n            \"recovered\": 0\n        },\n        \"2020-02-01\": {\n            \"confirmed\": 1,\n            \"deaths\": 0,\n            \"recovered\": 0\n        },\n        \"2020-02-02\": {\n            \"confirmed\": 2,\n            \"deaths\": 0,\n            \"recovered\": 0\n        },\n        \"2020-02-03\": {\n            \"confirmed\": 3,\n            \"deaths\": 0,\n            \"recovered\": 0\n        },\n        \"2020-02-04\": {\n            \"confirmed\": 3,\n            \"deaths\": 0,\n            \"recovered\": 0\n        },\n        \"2020-02-05\": {\n            \"confirmed\": 3,\n            \"deaths\": 0,\n            \"recovered\": 0\n        },\n        \"2020-02-06\": {\n            \"confirmed\": 3,\n            \"deaths\": 0,\n            \"recovered\": 0\n        },\n        \"2020-02-07\": {\n            \"confirmed\": 3,\n            \"deaths\": 0,\n            \"recovered\": 0\n        },\n        \"2020-02-08\": {\n            \"confirmed\": 3,\n            \"deaths\": 0,\n            \"recovered\": 0\n        },\n        \"2020-02-09\": {\n            \"confirmed\": 3,\n            \"deaths\": 0,\n            \"recovered\": 0\n        },\n        \"2020-02-10\": {\n            \"confirmed\": 3,\n            \"deaths\": 0,\n            \"recovered\": 0\n        },\n        \"2020-02-11\": {\n            \"confirmed\": 3,\n            \"deaths\": 0,\n            \"recovered\": 0\n        },\n        \"2020-02-12\": {\n            \"confirmed\": 3,\n            \"deaths\": 0,\n            \"recovered\": 0\n        },\n        \"2020-02-13\": {\n            \"confirmed\": 3,\n            \"deaths\": 0,\n            \"recovered\": 0\n        },\n        \"2020-02-14\": {\n            \"confirmed\": 3,\n            \"deaths\": 0,\n            \"recovered\": 0\n        },\n        \"2020-02-15\": {\n            \"confirmed\": 3,\n            \"deaths\": 0,\n            \"recovered\": 0\n        },\n        \"2020-02-16\": {\n            \"confirmed\": 3,\n            \"deaths\": 0,\n            \"recovered\": 3\n        },\n        \"2020-02-17\": {\n            \"confirmed\": 3,\n            \"deaths\": 0,\n            \"recovered\": 3\n        },\n        \"2020-02-18\": {\n            \"confirmed\": 3,\n            \"deaths\": 0,\n            \"recovered\": 3\n        },\n        \"2020-02-19\": {\n            \"confirmed\": 3,\n            \"deaths\": 0,\n            \"recovered\": 3\n        },\n        \"2020-02-20\": {\n            \"confirmed\": 3,\n            \"deaths\": 0,\n            \"recovered\": 3\n        },\n        \"2020-02-21\": {\n            \"confirmed\": 3,\n            \"deaths\": 0,\n            \"recovered\": 3\n        },\n        \"2020-02-22\": {\n            \"confirmed\": 3,\n            \"deaths\": 0,\n            \"recovered\": 3\n        },\n        \"2020-02-23\": {\n            \"confirmed\": 3,\n            \"deaths\": 0,\n            \"recovered\": 3\n        },\n        \"2020-02-24\": {\n            \"confirmed\": 3,\n            \"deaths\": 0,\n            \"recovered\": 3\n        },\n        \"2020-02-25\": {\n            \"confirmed\": 3,\n            \"deaths\": 0,\n            \"recovered\": 3\n        },\n        \"2020-02-26\": {\n            \"confirmed\": 3,\n            \"deaths\": 0,\n            \"recovered\": 3\n        },\n        \"2020-02-27\": {\n            \"confirmed\": 3,\n            \"deaths\": 0,\n            \"recovered\": 3\n        },\n        \"2020-02-28\": {\n            \"confirmed\": 3,\n            \"deaths\": 0,\n            \"recovered\": 3\n        },\n        \"2020-02-29\": {\n            \"confirmed\": 3,\n            \"deaths\": 0,\n            \"recovered\": 3\n        },\n        \"2020-03-01\": {\n            \"confirmed\": 3,\n            \"deaths\": 0,\n            \"recovered\": 3\n        },\n        \"2020-03-02\": {\n            \"confirmed\": 5,\n            \"deaths\": 0,\n            \"recovered\": 3\n        },\n        \"2020-03-03\": {\n            \"confirmed\": 5,\n            \"deaths\": 0,\n            \"recovered\": 3\n        },\n        \"2020-03-04\": {\n            \"confirmed\": 28,\n            \"deaths\": 0,\n            \"recovered\": 3\n        },\n        \"2020-03-05\": {\n            \"confirmed\": 30,\n            \"deaths\": 0,\n            \"recovered\": 3\n        },\n        \"2020-03-06\": {\n            \"confirmed\": 31,\n            \"deaths\": 0,\n            \"recovered\": 3\n        },\n        \"2020-03-07\": {\n            \"confirmed\": 34,\n            \"deaths\": 0,\n            \"recovered\": 3\n        },\n        \"2020-03-08\": {\n            \"confirmed\": 39,\n            \"deaths\": 0,\n            \"recovered\": 3\n        },\n        \"2020-03-09\": {\n            \"confirmed\": 43,\n            \"deaths\": 0,\n            \"recovered\": 3\n        },\n        \"2020-03-10\": {\n            \"confirmed\": 56,\n            \"deaths\": 0,\n            \"recovered\": 4\n        },\n        \"2020-03-11\": {\n            \"confirmed\": 62,\n            \"deaths\": 1,\n            \"recovered\": 4\n        },\n        \"2020-03-12\": {\n            \"confirmed\": 73,\n            \"deaths\": 1,\n            \"recovered\": 4\n        },\n        \"2020-03-13\": {\n            \"confirmed\": 82,\n            \"deaths\": 2,\n            \"recovered\": 4\n        },\n        \"2020-03-14\": {\n            \"confirmed\": 102,\n            \"deaths\": 2,\n            \"recovered\": 4\n        },\n        \"2020-03-15\": {\n            \"confirmed\": 113,\n            \"deaths\": 2,\n            \"recovered\": 13\n        },\n        \"2020-03-16\": {\n            \"confirmed\": 119,\n            \"deaths\": 2,\n            \"recovered\": 13\n        },\n        \"2020-03-17\": {\n            \"confirmed\": 142,\n            \"deaths\": 3,\n            \"recovered\": 14\n        },\n        \"2020-03-18\": {\n            \"confirmed\": 156,\n            \"deaths\": 3,\n            \"recovered\": 14\n        },\n        \"2020-03-19\": {\n            \"confirmed\": 194,\n            \"deaths\": 4,\n            \"recovered\": 15\n        },\n        \"2020-03-20\": {\n            \"confirmed\": 244,\n            \"deaths\": 5,\n            \"recovered\": 20\n        }\n    }\n}"}],"_postman_id":"bdbefa32-b68a-4d27-9f29-35c5e5c3b7c6"}],"id":"5e743958-a52a-45a8-a2eb-f45a0d9b577a","description":"<p><strong>Note</strong>: the API used in these examples is from <a href=\"https://explore.postman.com/templates/6495/covidapi\">this other collection</a> using <a href=\"https://github.com/CSSEGISandData/COVID-19\">this dataset</a> converted <a href=\"https://github.com/pomber/covid19\">here</a> and hosted on <a href=\"https://covidapi.info/\">this API</a>. </p>\n","event":[{"listen":"prerequest","script":{"id":"f6feb721-1167-43d5-882c-38c72077d2dc","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"91469a1a-5301-41fa-8ae3-10e50db47f1a","type":"text/javascript","exec":[""]}}],"_postman_id":"5e743958-a52a-45a8-a2eb-f45a0d9b577a"},{"name":"Next steps","item":[{"name":"Add ISO variable","event":[{"listen":"test","script":{"id":"bac79026-dfbd-4ff2-9a29-35897888e6ae","exec":["// add a template string of the front-end view we want to render","let template = `","    <script src=\"https://cdn.jsdelivr.net/npm/chart.js@2.8.0\"></script>","    <canvas id=\"myChart\"></canvas>","    <script>","        pm.getData( function (error, data) {","        console.log(data.response.result)","            var ctx = document.getElementById('myChart').getContext('2d');","            var chart = new Chart(ctx, {","                // The type of chart we want to create","                type: 'line',","            ","                // The data for our dataset","                data: {","                    labels: Object.entries(data.response.result).map( (item) => item[0]),","                    datasets: [{","                        label: data.title,","                        backgroundColor: 'rgb(255, 20, 147)',","                        borderColor: 'rgb(255, 99, 132)',","                        data: Object.entries(data.response.result).map( (item) => item[1].confirmed)","                    }]","                },","            ","                // Configuration options go here","                options: {}","            });","        });","    </script>","`;","","// Set visualizer","pm.visualizer.set(template, {","    // Pass the response body parsed as JSON as `data`","    response: pm.response.json(),","    title: `COVID timeseries data for ${pm.variables.get(\"ISO\")}`","});",""],"type":"text/javascript"}},{"listen":"prerequest","script":{"id":"c3e6a260-92b7-4519-b32a-cd0ea16c6755","exec":["// There's a bunch of ways to retrieve or save the country's ISO code as a variable","// https://learning.postman.com/docs/postman/variables-and-environments/variables/","// One option is to set a local variable to be used in this request or during a collection run","pm.variables.set(\"ISO\", \"CHN\");",""],"type":"text/javascript"}}],"id":"3e694240-4552-496b-bf45-e0d61dc62b48","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"body":{"mode":"raw","raw":""},"url":"https://covidapi.info/api/v1/country/{{ISO}}","description":"<p>Turn the country's ISO in the URL and chart label into a variable</p>\n<p>The country names are as per ISO 3166 standards.\nExamples:</p>\n<ul>\n<li>India - IND</li>\n<li>United States of America - USA</li>\n<li>Czech Republic - CZE</li>\n</ul>\n<p><a href=\"https://en.wikipedia.org/wiki/List_of_ISO_3166_country_codes\">List of all the ISO codes</a></p>\n","urlObject":{"protocol":"https","path":["api","v1","country","{{ISO}}"],"host":["covidapi","info"],"query":[],"variable":[]}},"response":[{"id":"54f775c5-91a8-4871-8dce-88346918e797","name":"Country specific historic data","originalRequest":{"method":"GET","header":[],"url":"https://covidapi.info/api/v1/country/IND"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.14.0 (Ubuntu)"},{"key":"Date","value":"Sun, 22 Mar 2020 07:46:33 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Expires","value":"Sun, 22 Mar 2020 15:46:33 GMT"},{"key":"Cache-Control","value":"max-age=28800"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n    \"count\": 59,\n    \"result\": {\n        \"2020-01-22\": {\n            \"confirmed\": 0,\n            \"deaths\": 0,\n            \"recovered\": 0\n        },\n        \"2020-01-23\": {\n            \"confirmed\": 0,\n            \"deaths\": 0,\n            \"recovered\": 0\n        },\n        \"2020-01-24\": {\n            \"confirmed\": 0,\n            \"deaths\": 0,\n            \"recovered\": 0\n        },\n        \"2020-01-25\": {\n            \"confirmed\": 0,\n            \"deaths\": 0,\n            \"recovered\": 0\n        },\n        \"2020-01-26\": {\n            \"confirmed\": 0,\n            \"deaths\": 0,\n            \"recovered\": 0\n        },\n        \"2020-01-27\": {\n            \"confirmed\": 0,\n            \"deaths\": 0,\n            \"recovered\": 0\n        },\n        \"2020-01-28\": {\n            \"confirmed\": 0,\n            \"deaths\": 0,\n            \"recovered\": 0\n        },\n        \"2020-01-29\": {\n            \"confirmed\": 0,\n            \"deaths\": 0,\n            \"recovered\": 0\n        },\n        \"2020-01-30\": {\n            \"confirmed\": 1,\n            \"deaths\": 0,\n            \"recovered\": 0\n        },\n        \"2020-01-31\": {\n            \"confirmed\": 1,\n            \"deaths\": 0,\n            \"recovered\": 0\n        },\n        \"2020-02-01\": {\n            \"confirmed\": 1,\n            \"deaths\": 0,\n            \"recovered\": 0\n        },\n        \"2020-02-02\": {\n            \"confirmed\": 2,\n            \"deaths\": 0,\n            \"recovered\": 0\n        },\n        \"2020-02-03\": {\n            \"confirmed\": 3,\n            \"deaths\": 0,\n            \"recovered\": 0\n        },\n        \"2020-02-04\": {\n            \"confirmed\": 3,\n            \"deaths\": 0,\n            \"recovered\": 0\n        },\n        \"2020-02-05\": {\n            \"confirmed\": 3,\n            \"deaths\": 0,\n            \"recovered\": 0\n        },\n        \"2020-02-06\": {\n            \"confirmed\": 3,\n            \"deaths\": 0,\n            \"recovered\": 0\n        },\n        \"2020-02-07\": {\n            \"confirmed\": 3,\n            \"deaths\": 0,\n            \"recovered\": 0\n        },\n        \"2020-02-08\": {\n            \"confirmed\": 3,\n            \"deaths\": 0,\n            \"recovered\": 0\n        },\n        \"2020-02-09\": {\n            \"confirmed\": 3,\n            \"deaths\": 0,\n            \"recovered\": 0\n        },\n        \"2020-02-10\": {\n            \"confirmed\": 3,\n            \"deaths\": 0,\n            \"recovered\": 0\n        },\n        \"2020-02-11\": {\n            \"confirmed\": 3,\n            \"deaths\": 0,\n            \"recovered\": 0\n        },\n        \"2020-02-12\": {\n            \"confirmed\": 3,\n            \"deaths\": 0,\n            \"recovered\": 0\n        },\n        \"2020-02-13\": {\n            \"confirmed\": 3,\n            \"deaths\": 0,\n            \"recovered\": 0\n        },\n        \"2020-02-14\": {\n            \"confirmed\": 3,\n            \"deaths\": 0,\n            \"recovered\": 0\n        },\n        \"2020-02-15\": {\n            \"confirmed\": 3,\n            \"deaths\": 0,\n            \"recovered\": 0\n        },\n        \"2020-02-16\": {\n            \"confirmed\": 3,\n            \"deaths\": 0,\n            \"recovered\": 3\n        },\n        \"2020-02-17\": {\n            \"confirmed\": 3,\n            \"deaths\": 0,\n            \"recovered\": 3\n        },\n        \"2020-02-18\": {\n            \"confirmed\": 3,\n            \"deaths\": 0,\n            \"recovered\": 3\n        },\n        \"2020-02-19\": {\n            \"confirmed\": 3,\n            \"deaths\": 0,\n            \"recovered\": 3\n        },\n        \"2020-02-20\": {\n            \"confirmed\": 3,\n            \"deaths\": 0,\n            \"recovered\": 3\n        },\n        \"2020-02-21\": {\n            \"confirmed\": 3,\n            \"deaths\": 0,\n            \"recovered\": 3\n        },\n        \"2020-02-22\": {\n            \"confirmed\": 3,\n            \"deaths\": 0,\n            \"recovered\": 3\n        },\n        \"2020-02-23\": {\n            \"confirmed\": 3,\n            \"deaths\": 0,\n            \"recovered\": 3\n        },\n        \"2020-02-24\": {\n            \"confirmed\": 3,\n            \"deaths\": 0,\n            \"recovered\": 3\n        },\n        \"2020-02-25\": {\n            \"confirmed\": 3,\n            \"deaths\": 0,\n            \"recovered\": 3\n        },\n        \"2020-02-26\": {\n            \"confirmed\": 3,\n            \"deaths\": 0,\n            \"recovered\": 3\n        },\n        \"2020-02-27\": {\n            \"confirmed\": 3,\n            \"deaths\": 0,\n            \"recovered\": 3\n        },\n        \"2020-02-28\": {\n            \"confirmed\": 3,\n            \"deaths\": 0,\n            \"recovered\": 3\n        },\n        \"2020-02-29\": {\n            \"confirmed\": 3,\n            \"deaths\": 0,\n            \"recovered\": 3\n        },\n        \"2020-03-01\": {\n            \"confirmed\": 3,\n            \"deaths\": 0,\n            \"recovered\": 3\n        },\n        \"2020-03-02\": {\n            \"confirmed\": 5,\n            \"deaths\": 0,\n            \"recovered\": 3\n        },\n        \"2020-03-03\": {\n            \"confirmed\": 5,\n            \"deaths\": 0,\n            \"recovered\": 3\n        },\n        \"2020-03-04\": {\n            \"confirmed\": 28,\n            \"deaths\": 0,\n            \"recovered\": 3\n        },\n        \"2020-03-05\": {\n            \"confirmed\": 30,\n            \"deaths\": 0,\n            \"recovered\": 3\n        },\n        \"2020-03-06\": {\n            \"confirmed\": 31,\n            \"deaths\": 0,\n            \"recovered\": 3\n        },\n        \"2020-03-07\": {\n            \"confirmed\": 34,\n            \"deaths\": 0,\n            \"recovered\": 3\n        },\n        \"2020-03-08\": {\n            \"confirmed\": 39,\n            \"deaths\": 0,\n            \"recovered\": 3\n        },\n        \"2020-03-09\": {\n            \"confirmed\": 43,\n            \"deaths\": 0,\n            \"recovered\": 3\n        },\n        \"2020-03-10\": {\n            \"confirmed\": 56,\n            \"deaths\": 0,\n            \"recovered\": 4\n        },\n        \"2020-03-11\": {\n            \"confirmed\": 62,\n            \"deaths\": 1,\n            \"recovered\": 4\n        },\n        \"2020-03-12\": {\n            \"confirmed\": 73,\n            \"deaths\": 1,\n            \"recovered\": 4\n        },\n        \"2020-03-13\": {\n            \"confirmed\": 82,\n            \"deaths\": 2,\n            \"recovered\": 4\n        },\n        \"2020-03-14\": {\n            \"confirmed\": 102,\n            \"deaths\": 2,\n            \"recovered\": 4\n        },\n        \"2020-03-15\": {\n            \"confirmed\": 113,\n            \"deaths\": 2,\n            \"recovered\": 13\n        },\n        \"2020-03-16\": {\n            \"confirmed\": 119,\n            \"deaths\": 2,\n            \"recovered\": 13\n        },\n        \"2020-03-17\": {\n            \"confirmed\": 142,\n            \"deaths\": 3,\n            \"recovered\": 14\n        },\n        \"2020-03-18\": {\n            \"confirmed\": 156,\n            \"deaths\": 3,\n            \"recovered\": 14\n        },\n        \"2020-03-19\": {\n            \"confirmed\": 194,\n            \"deaths\": 4,\n            \"recovered\": 15\n        },\n        \"2020-03-20\": {\n            \"confirmed\": 244,\n            \"deaths\": 5,\n            \"recovered\": 20\n        }\n    }\n}"}],"_postman_id":"3e694240-4552-496b-bf45-e0d61dc62b48"},{"name":"Troubleshooting","event":[{"listen":"test","script":{"id":"bac79026-dfbd-4ff2-9a29-35897888e6ae","exec":["// add a template string of the front-end view we want to render","let template = `","    <script src=\"https://cdn.jsdelivr.net/npm/chart.js@2.8.0\"></script>","    <canvas id=\"myChart\"></canvas>","    <script>","        pm.getData( function (error, data) {","        ","        // Use the Developer Tools console to validate the the data you received from pm.visualizer.set()","        console.log(\"The result property: \", data.response.result)","        ","            var ctx = document.getElementById('myChart').getContext('2d');","            var chart = new Chart(ctx, {","                // The type of chart we want to create","                type: 'line',","            ","                // The data for our dataset","                data: {","                    labels: Object.entries(data.response.result).map( (item) => item[0]),","                    datasets: [{","                        label: data.title,","                        backgroundColor: 'rgb(255, 20, 147)',","                        borderColor: 'rgb(255, 99, 132)',","                        data: Object.entries(data.response.result).map( (item) => item[1].confirmed)","                    }]","                },","            ","                // Configuration options go here","                options: {}","            });","        });","    </script>","`;","","// Use the Postman console to validate the the data you're thinking about passing to the layout template","console.log(\"The result property of the response: \", pm.response.json().result);","console.log(\"The type: \", typeof(pm.response.json().result));","","// Set visualizer","pm.visualizer.set(template, {","    // Pass the response body parsed as JSON as `data`","    response: pm.response.json(),","    title: `COVID timeseries data for ${pm.variables.get(\"ISO\")}`","});",""],"type":"text/javascript"}},{"listen":"prerequest","script":{"id":"c3e6a260-92b7-4519-b32a-cd0ea16c6755","exec":["// There's a bunch of ways to retrieve or save the country's ISO code as a variable","// https://learning.postman.com/docs/postman/variables-and-environments/variables/","// One option is to set a local variable to be used in this request or during a collection run","pm.variables.set(\"ISO\", \"USA\");",""],"type":"text/javascript"}}],"id":"40428588-af67-4665-9d8b-b2cd9dd6ed2b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"body":{"mode":"raw","raw":""},"url":"https://covidapi.info/api/v1/country/{{ISO}}","description":"<h3 id=\"postman-console\">Postman Console</h3>\n<p>The <a href=\"https://learning.postman.com/docs/postman/sending-api-requests/debugging-and-logs/#network-calls-with-the-postman-console\">Postman Console</a> is a great way to debug and validate your assumptions. Every request sent via Postman is logged in this console, as well as any log statements from within your scripts. Open the Postman Console using the icon in the bottom left, hit <strong>Send</strong> to see what happens.</p>\n<p><img src=\"https://i.imgur.com/uWcigTj.png\" alt=\"[screenshot console](https://i.imgur.com/uWcigTj.png)\" /></p>\n<h3 id=\"developer-tools\">Developer Tools</h3>\n<p>The <a href=\"https://learning.postman.com/docs/postman/sending-api-requests/debugging-and-logs/#devtools-console-logs\">Developer Tools</a> also has a console that you can use for more visibility into the HTML visualized under the <strong>Visualize</strong> tab. This helps us debug what's going on within the template string. Under the <strong>Visualize</strong> tab, right-click on the HTML rendered, and select <strong>Inspect visualization</strong>. Look under the <strong>Console</strong> tab to see your console logs.</p>\n<p><img src=\"https://i.imgur.com/1NxWTnl.png\" alt=\"[screenshot DevTools](https://i.imgur.com/1NxWTnl.png)\" /></p>\n","urlObject":{"protocol":"https","path":["api","v1","country","{{ISO}}"],"host":["covidapi","info"],"query":[],"variable":[]}},"response":[{"id":"f1b24920-04ec-4c29-a0d0-140a58a0e547","name":"Country specific historic data","originalRequest":{"method":"GET","header":[],"url":"https://covidapi.info/api/v1/country/IND"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"nginx/1.14.0 (Ubuntu)"},{"key":"Date","value":"Sun, 22 Mar 2020 07:46:33 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"Vary","value":"Accept-Encoding"},{"key":"Expires","value":"Sun, 22 Mar 2020 15:46:33 GMT"},{"key":"Cache-Control","value":"max-age=28800"},{"key":"Content-Encoding","value":"gzip"}],"cookie":[],"responseTime":null,"body":"{\n    \"count\": 59,\n    \"result\": {\n        \"2020-01-22\": {\n            \"confirmed\": 0,\n            \"deaths\": 0,\n            \"recovered\": 0\n        },\n        \"2020-01-23\": {\n            \"confirmed\": 0,\n            \"deaths\": 0,\n            \"recovered\": 0\n        },\n        \"2020-01-24\": {\n            \"confirmed\": 0,\n            \"deaths\": 0,\n            \"recovered\": 0\n        },\n        \"2020-01-25\": {\n            \"confirmed\": 0,\n            \"deaths\": 0,\n            \"recovered\": 0\n        },\n        \"2020-01-26\": {\n            \"confirmed\": 0,\n            \"deaths\": 0,\n            \"recovered\": 0\n        },\n        \"2020-01-27\": {\n            \"confirmed\": 0,\n            \"deaths\": 0,\n            \"recovered\": 0\n        },\n        \"2020-01-28\": {\n            \"confirmed\": 0,\n            \"deaths\": 0,\n            \"recovered\": 0\n        },\n        \"2020-01-29\": {\n            \"confirmed\": 0,\n            \"deaths\": 0,\n            \"recovered\": 0\n        },\n        \"2020-01-30\": {\n            \"confirmed\": 1,\n            \"deaths\": 0,\n            \"recovered\": 0\n        },\n        \"2020-01-31\": {\n            \"confirmed\": 1,\n            \"deaths\": 0,\n            \"recovered\": 0\n        },\n        \"2020-02-01\": {\n            \"confirmed\": 1,\n            \"deaths\": 0,\n            \"recovered\": 0\n        },\n        \"2020-02-02\": {\n            \"confirmed\": 2,\n            \"deaths\": 0,\n            \"recovered\": 0\n        },\n        \"2020-02-03\": {\n            \"confirmed\": 3,\n            \"deaths\": 0,\n            \"recovered\": 0\n        },\n        \"2020-02-04\": {\n            \"confirmed\": 3,\n            \"deaths\": 0,\n            \"recovered\": 0\n        },\n        \"2020-02-05\": {\n            \"confirmed\": 3,\n            \"deaths\": 0,\n            \"recovered\": 0\n        },\n        \"2020-02-06\": {\n            \"confirmed\": 3,\n            \"deaths\": 0,\n            \"recovered\": 0\n        },\n        \"2020-02-07\": {\n            \"confirmed\": 3,\n            \"deaths\": 0,\n            \"recovered\": 0\n        },\n        \"2020-02-08\": {\n            \"confirmed\": 3,\n            \"deaths\": 0,\n            \"recovered\": 0\n        },\n        \"2020-02-09\": {\n            \"confirmed\": 3,\n            \"deaths\": 0,\n            \"recovered\": 0\n        },\n        \"2020-02-10\": {\n            \"confirmed\": 3,\n            \"deaths\": 0,\n            \"recovered\": 0\n        },\n        \"2020-02-11\": {\n            \"confirmed\": 3,\n            \"deaths\": 0,\n            \"recovered\": 0\n        },\n        \"2020-02-12\": {\n            \"confirmed\": 3,\n            \"deaths\": 0,\n            \"recovered\": 0\n        },\n        \"2020-02-13\": {\n            \"confirmed\": 3,\n            \"deaths\": 0,\n            \"recovered\": 0\n        },\n        \"2020-02-14\": {\n            \"confirmed\": 3,\n            \"deaths\": 0,\n            \"recovered\": 0\n        },\n        \"2020-02-15\": {\n            \"confirmed\": 3,\n            \"deaths\": 0,\n            \"recovered\": 0\n        },\n        \"2020-02-16\": {\n            \"confirmed\": 3,\n            \"deaths\": 0,\n            \"recovered\": 3\n        },\n        \"2020-02-17\": {\n            \"confirmed\": 3,\n            \"deaths\": 0,\n            \"recovered\": 3\n        },\n        \"2020-02-18\": {\n            \"confirmed\": 3,\n            \"deaths\": 0,\n            \"recovered\": 3\n        },\n        \"2020-02-19\": {\n            \"confirmed\": 3,\n            \"deaths\": 0,\n            \"recovered\": 3\n        },\n        \"2020-02-20\": {\n            \"confirmed\": 3,\n            \"deaths\": 0,\n            \"recovered\": 3\n        },\n        \"2020-02-21\": {\n            \"confirmed\": 3,\n            \"deaths\": 0,\n            \"recovered\": 3\n        },\n        \"2020-02-22\": {\n            \"confirmed\": 3,\n            \"deaths\": 0,\n            \"recovered\": 3\n        },\n        \"2020-02-23\": {\n            \"confirmed\": 3,\n            \"deaths\": 0,\n            \"recovered\": 3\n        },\n        \"2020-02-24\": {\n            \"confirmed\": 3,\n            \"deaths\": 0,\n            \"recovered\": 3\n        },\n        \"2020-02-25\": {\n            \"confirmed\": 3,\n            \"deaths\": 0,\n            \"recovered\": 3\n        },\n        \"2020-02-26\": {\n            \"confirmed\": 3,\n            \"deaths\": 0,\n            \"recovered\": 3\n        },\n        \"2020-02-27\": {\n            \"confirmed\": 3,\n            \"deaths\": 0,\n            \"recovered\": 3\n        },\n        \"2020-02-28\": {\n            \"confirmed\": 3,\n            \"deaths\": 0,\n            \"recovered\": 3\n        },\n        \"2020-02-29\": {\n            \"confirmed\": 3,\n            \"deaths\": 0,\n            \"recovered\": 3\n        },\n        \"2020-03-01\": {\n            \"confirmed\": 3,\n            \"deaths\": 0,\n            \"recovered\": 3\n        },\n        \"2020-03-02\": {\n            \"confirmed\": 5,\n            \"deaths\": 0,\n            \"recovered\": 3\n        },\n        \"2020-03-03\": {\n            \"confirmed\": 5,\n            \"deaths\": 0,\n            \"recovered\": 3\n        },\n        \"2020-03-04\": {\n            \"confirmed\": 28,\n            \"deaths\": 0,\n            \"recovered\": 3\n        },\n        \"2020-03-05\": {\n            \"confirmed\": 30,\n            \"deaths\": 0,\n            \"recovered\": 3\n        },\n        \"2020-03-06\": {\n            \"confirmed\": 31,\n            \"deaths\": 0,\n            \"recovered\": 3\n        },\n        \"2020-03-07\": {\n            \"confirmed\": 34,\n            \"deaths\": 0,\n            \"recovered\": 3\n        },\n        \"2020-03-08\": {\n            \"confirmed\": 39,\n            \"deaths\": 0,\n            \"recovered\": 3\n        },\n        \"2020-03-09\": {\n            \"confirmed\": 43,\n            \"deaths\": 0,\n            \"recovered\": 3\n        },\n        \"2020-03-10\": {\n            \"confirmed\": 56,\n            \"deaths\": 0,\n            \"recovered\": 4\n        },\n        \"2020-03-11\": {\n            \"confirmed\": 62,\n            \"deaths\": 1,\n            \"recovered\": 4\n        },\n        \"2020-03-12\": {\n            \"confirmed\": 73,\n            \"deaths\": 1,\n            \"recovered\": 4\n        },\n        \"2020-03-13\": {\n            \"confirmed\": 82,\n            \"deaths\": 2,\n            \"recovered\": 4\n        },\n        \"2020-03-14\": {\n            \"confirmed\": 102,\n            \"deaths\": 2,\n            \"recovered\": 4\n        },\n        \"2020-03-15\": {\n            \"confirmed\": 113,\n            \"deaths\": 2,\n            \"recovered\": 13\n        },\n        \"2020-03-16\": {\n            \"confirmed\": 119,\n            \"deaths\": 2,\n            \"recovered\": 13\n        },\n        \"2020-03-17\": {\n            \"confirmed\": 142,\n            \"deaths\": 3,\n            \"recovered\": 14\n        },\n        \"2020-03-18\": {\n            \"confirmed\": 156,\n            \"deaths\": 3,\n            \"recovered\": 14\n        },\n        \"2020-03-19\": {\n            \"confirmed\": 194,\n            \"deaths\": 4,\n            \"recovered\": 15\n        },\n        \"2020-03-20\": {\n            \"confirmed\": 244,\n            \"deaths\": 5,\n            \"recovered\": 20\n        }\n    }\n}"}],"_postman_id":"40428588-af67-4665-9d8b-b2cd9dd6ed2b"}],"id":"4bc67018-5348-4c42-8cbe-ab981647fc48","description":"<p>Now that we've walked through the preceding folder <strong>Get Started</strong>, we can continue exploring some enhancements, as well as tips for troubleshooting.</p>\n<p>Ideas for next steps:</p>\n<ul>\n<li>Display time series data for another value</li>\n<li>Display time series data for a different country</li>\n<li><strong>Turn the country's ISO in the URL and chart label into a variable</strong></li>\n<li>Style the chart with the country's flag colors</li>\n<li>Make it even prettier with CSS, Handlebars, Chart.js, or other libraries</li>\n<li>Compare two different countries within the same graph</li>\n</ul>\n","event":[{"listen":"prerequest","script":{"id":"69abd162-3a01-4628-a391-277c23c210d6","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"27c66505-ac1f-4a54-b7e4-c113824b331d","type":"text/javascript","exec":[""]}}],"_postman_id":"4bc67018-5348-4c42-8cbe-ab981647fc48"}],"event":[{"listen":"prerequest","script":{"id":"515b3ecb-782b-4c42-80e8-d32742b7ba25","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"d4d8e724-e287-444e-a3a8-786f2ae32e0a","type":"text/javascript","exec":[""]}}]}