{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": 1,
   "metadata": {
    "collapsed": false
   },
   "outputs": [],
   "source": [
    "import numpy as np\n",
    "import pandas as pd\n",
    "\n",
    "from bokeh.charts import Histogram, Bar, BoxPlot\n",
    "from bokeh.plotting import figure, show\n",
    "from bokeh.io import output_notebook"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "### Ebola outbreaks data before 2014"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 2,
   "metadata": {
    "collapsed": false
   },
   "outputs": [],
   "source": [
    "ebola_df = pd.read_csv(\"data/out/ebola_outbreaks_before_2014-geometry_fixed.csv\", encoding=\"utf-8\", index_col=False)\n",
    "\n",
    "ebola_data = ebola_df.drop(ebola_df.columns[[0, 1, 2, 9]], axis=1)"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "### Data set description"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 3,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "column 1 : country_code_iso_2_digits\n",
      "column 2 : country_name\n",
      "column 3 : duration_days\n",
      "column 4 : ebola_subtype\n",
      "column 5 : end_date\n",
      "column 6 : end_datetime\n",
      "column 7 : geometry\n",
      "column 8 : geometry_geojson\n",
      "column 9 : latitude\n",
      "column 10 : longitude\n",
      "column 11 : reported_number_of_deaths_among_cases\n",
      "column 12 : reported_number_of_human_cases\n",
      "column 13 : reported_of_deaths_among_cases\n",
      "column 14 : start_date\n",
      "column 15 : start_datetime\n",
      "column 16 : year_s\n"
     ]
    }
   ],
   "source": [
    "cols = list(ebola_data.columns)\n",
    "\n",
    "for column in cols:\n",
    "    print \"column\", (cols.index(column) + 1), \":\", column"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "**=> locations info, reported cases, date/time**"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "### Number of outbreaks per countries"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 4,
   "metadata": {
    "collapsed": false,
    "scrolled": true
   },
   "outputs": [
    {
     "data": {
      "text/plain": [
       "country_name\n",
       "Côte d'Ivoire (Ivory Coast)         1\n",
       "England                             1\n",
       "Italy                               1\n",
       "South Africa                        1\n",
       "Russia                              2\n",
       "Philippines                         3\n",
       "Sudan (South Sudan)                 3\n",
       "USA                                 3\n",
       "Gabon                               4\n",
       "Uganda                              5\n",
       "Democratic Republic of the Congo    9\n",
       "Name: country_name, dtype: int64"
      ]
     },
     "execution_count": 4,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "ebola_data.groupby([\"country_name\"])[\"country_name\"].count().order()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 4,
   "metadata": {
    "collapsed": false
   },
   "outputs": [],
   "source": [
    "# Bokeh can't seem to handle the unicode for circumflex accent on the 'o' in \"Côte d'Ivoire\"\n",
    "# I'm replacing it by a normal 'o'\n",
    "\n",
    "countries_list = list(ebola_data[\"country_name\"])\n",
    "\n",
    "for i in range(len(countries_list)): \n",
    "    if countries_list[i] == u\"C\\xf4te d'Ivoire (Ivory Coast)\":\n",
    "       countries_list[i] = u\"Cote d'Ivoire (Ivory Coast)\""
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 5,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "data": {
      "text/html": [
       "\n",
       "    <div class=\"bk-banner\">\n",
       "        <a href=\"http://bokeh.pydata.org\" target=\"_blank\" class=\"bk-logo bk-logo-small bk-logo-notebook\"></a>\n",
       "        <span id=\"47e56ecf-8e00-4780-ab9b-985ec0c69269\">Loading BokehJS ...</span>\n",
       "    </div>"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "data": {
      "application/javascript": [
       "\n",
       "(function(global) {\n",
       "  function now() {\n",
       "    return new Date();\n",
       "  }\n",
       "\n",
       "  if (typeof (window._bokeh_onload_callbacks) === \"undefined\") {\n",
       "    window._bokeh_onload_callbacks = [];\n",
       "  }\n",
       "\n",
       "  function run_callbacks() {\n",
       "    window._bokeh_onload_callbacks.forEach(function(callback) { callback() });\n",
       "    delete window._bokeh_onload_callbacks\n",
       "    console.info(\"Bokeh: all callbacks have finished\");\n",
       "  }\n",
       "\n",
       "  function load_libs(js_urls, callback) {\n",
       "    window._bokeh_onload_callbacks.push(callback);\n",
       "    if (window._bokeh_is_loading > 0) {\n",
       "      console.log(\"Bokeh: BokehJS is being loaded, scheduling callback at\", now());\n",
       "      return null;\n",
       "    }\n",
       "    if (js_urls == null || js_urls.length === 0) {\n",
       "      run_callbacks();\n",
       "      return null;\n",
       "    }\n",
       "    console.log(\"Bokeh: BokehJS not loaded, scheduling load and callback at\", now());\n",
       "    window._bokeh_is_loading = js_urls.length;\n",
       "    for (var i = 0; i < js_urls.length; i++) {\n",
       "      var url = js_urls[i];\n",
       "      var s = document.createElement('script');\n",
       "      s.src = url;\n",
       "      s.async = false;\n",
       "      s.onreadystatechange = s.onload = function() {\n",
       "        window._bokeh_is_loading--;\n",
       "        if (window._bokeh_is_loading === 0) {\n",
       "          console.log(\"Bokeh: all BokehJS libraries loaded\");\n",
       "          run_callbacks()\n",
       "        }\n",
       "      };\n",
       "      s.onerror = function() {\n",
       "        console.warn(\"failed to load library \" + url);\n",
       "      };\n",
       "      console.log(\"Bokeh: injecting script tag for BokehJS library: \", url);\n",
       "      document.getElementsByTagName(\"head\")[0].appendChild(s);\n",
       "    }\n",
       "  };\n",
       "\n",
       "  var js_urls = ['https://cdn.pydata.org/bokeh/release/bokeh-0.11.1.min.js', 'https://cdn.pydata.org/bokeh/release/bokeh-widgets-0.11.1.min.js', 'https://cdn.pydata.org/bokeh/release/bokeh-compiler-0.11.1.min.js'];\n",
       "\n",
       "  var inline_js = [\n",
       "    function(Bokeh) {\n",
       "      Bokeh.set_log_level(\"info\");\n",
       "    },\n",
       "    \n",
       "    function(Bokeh) {\n",
       "      Bokeh.$(\"#47e56ecf-8e00-4780-ab9b-985ec0c69269\").text(\"BokehJS successfully loaded\");\n",
       "    },\n",
       "    function(Bokeh) {\n",
       "      console.log(\"Bokeh: injecting CSS: https://cdn.pydata.org/bokeh/release/bokeh-0.11.1.min.css\");\n",
       "      Bokeh.embed.inject_css(\"https://cdn.pydata.org/bokeh/release/bokeh-0.11.1.min.css\");\n",
       "      console.log(\"Bokeh: injecting CSS: https://cdn.pydata.org/bokeh/release/bokeh-widgets-0.11.1.min.css\");\n",
       "      Bokeh.embed.inject_css(\"https://cdn.pydata.org/bokeh/release/bokeh-widgets-0.11.1.min.css\");\n",
       "    }\n",
       "  ];\n",
       "\n",
       "  function run_inline_js() {\n",
       "    for (var i = 0; i < inline_js.length; i++) {\n",
       "      inline_js[i](window.Bokeh);\n",
       "    }\n",
       "  }\n",
       "\n",
       "  if (window._bokeh_is_loading === 0) {\n",
       "    console.log(\"Bokeh: BokehJS loaded, going straight to plotting\");\n",
       "    run_inline_js();\n",
       "  } else {\n",
       "    load_libs(js_urls, function() {\n",
       "      console.log(\"Bokeh: BokehJS plotting callback run at\", now());\n",
       "      run_inline_js();\n",
       "    });\n",
       "  }\n",
       "}(this));"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "data": {
      "text/html": [
       "\n",
       "\n",
       "    <div class=\"plotdiv\" id=\"6e46004f-a0b7-4963-a38a-68194b1990ac\"></div>\n",
       "<script type=\"text/javascript\">\n",
       "  \n",
       "  (function(global) {\n",
       "    function now() {\n",
       "      return new Date();\n",
       "    }\n",
       "  \n",
       "    if (typeof (window._bokeh_onload_callbacks) === \"undefined\") {\n",
       "      window._bokeh_onload_callbacks = [];\n",
       "    }\n",
       "  \n",
       "    function run_callbacks() {\n",
       "      window._bokeh_onload_callbacks.forEach(function(callback) { callback() });\n",
       "      delete window._bokeh_onload_callbacks\n",
       "      console.info(\"Bokeh: all callbacks have finished\");\n",
       "    }\n",
       "  \n",
       "    function load_libs(js_urls, callback) {\n",
       "      window._bokeh_onload_callbacks.push(callback);\n",
       "      if (window._bokeh_is_loading > 0) {\n",
       "        console.log(\"Bokeh: BokehJS is being loaded, scheduling callback at\", now());\n",
       "        return null;\n",
       "      }\n",
       "      if (js_urls == null || js_urls.length === 0) {\n",
       "        run_callbacks();\n",
       "        return null;\n",
       "      }\n",
       "      console.log(\"Bokeh: BokehJS not loaded, scheduling load and callback at\", now());\n",
       "      window._bokeh_is_loading = js_urls.length;\n",
       "      for (var i = 0; i < js_urls.length; i++) {\n",
       "        var url = js_urls[i];\n",
       "        var s = document.createElement('script');\n",
       "        s.src = url;\n",
       "        s.async = false;\n",
       "        s.onreadystatechange = s.onload = function() {\n",
       "          window._bokeh_is_loading--;\n",
       "          if (window._bokeh_is_loading === 0) {\n",
       "            console.log(\"Bokeh: all BokehJS libraries loaded\");\n",
       "            run_callbacks()\n",
       "          }\n",
       "        };\n",
       "        s.onerror = function() {\n",
       "          console.warn(\"failed to load library \" + url);\n",
       "        };\n",
       "        console.log(\"Bokeh: injecting script tag for BokehJS library: \", url);\n",
       "        document.getElementsByTagName(\"head\")[0].appendChild(s);\n",
       "      }\n",
       "    };var element = document.getElementById(\"6e46004f-a0b7-4963-a38a-68194b1990ac\");\n",
       "    if (element == null) {\n",
       "      console.log(\"Bokeh: ERROR: autoload.js configured with elementid '6e46004f-a0b7-4963-a38a-68194b1990ac' but no matching script tag was found. \")\n",
       "      return false;\n",
       "    }\n",
       "  \n",
       "    var js_urls = [];\n",
       "  \n",
       "    var inline_js = [\n",
       "      function(Bokeh) {\n",
       "        Bokeh.$(function() {\n",
       "            var docs_json = {\"f58b6b98-ed59-4027-bb52-3748158c1914\":{\"roots\":{\"references\":[{\"attributes\":{\"plot\":{\"id\":\"94a2836b-f34a-41f1-a6dc-b664a876ec4f\",\"subtype\":\"Chart\",\"type\":\"Plot\"}},\"id\":\"78bd52a8-18c6-43d4-8f41-803133a4efeb\",\"type\":\"ResetTool\"},{\"attributes\":{\"fill_alpha\":{\"field\":\"fill_alpha\"},\"fill_color\":{\"field\":\"color\"},\"height\":{\"field\":\"height\",\"units\":\"data\"},\"line_color\":{\"field\":\"line_color\"},\"width\":{\"field\":\"width\",\"units\":\"data\"},\"x\":{\"field\":\"x\"},\"y\":{\"field\":\"y\"}},\"id\":\"17755ee5-062b-49b0-ad3e-992bacac18df\",\"type\":\"Rect\"},{\"attributes\":{\"overlay\":{\"id\":\"862bec32-99e6-4c9e-b90e-ca4a7092a977\",\"type\":\"BoxAnnotation\"},\"plot\":{\"id\":\"94a2836b-f34a-41f1-a6dc-b664a876ec4f\",\"subtype\":\"Chart\",\"type\":\"Plot\"}},\"id\":\"88ef33ff-ebd0-4a3a-9857-9f24a0f30407\",\"type\":\"BoxZoomTool\"},{\"attributes\":{\"fill_alpha\":{\"field\":\"fill_alpha\"},\"fill_color\":{\"field\":\"color\"},\"height\":{\"field\":\"height\",\"units\":\"data\"},\"line_color\":{\"field\":\"line_color\"},\"width\":{\"field\":\"width\",\"units\":\"data\"},\"x\":{\"field\":\"x\"},\"y\":{\"field\":\"y\"}},\"id\":\"0905d67a-d776-4a36-aa07-4df48ef01119\",\"type\":\"Rect\"},{\"attributes\":{\"dimension\":1,\"plot\":{\"id\":\"94a2836b-f34a-41f1-a6dc-b664a876ec4f\",\"subtype\":\"Chart\",\"type\":\"Plot\"},\"ticker\":{\"id\":\"00737aad-62a4-462f-9ac8-b3f419419097\",\"type\":\"BasicTicker\"}},\"id\":\"93111a99-439f-4fe1-ba2e-ca328c86276b\",\"type\":\"Grid\"},{\"attributes\":{\"callback\":null,\"column_names\":[\"line_color\",\"line_alpha\",\"color\",\"fill_alpha\",\"height\",\"width\",\"y\",\"x\"],\"data\":{\"chart_index\":[{\"countries\":\"Italy\"}],\"color\":[\"#3B6849\"],\"countries\":[\"Italy\"],\"fill_alpha\":[0.8],\"height\":[1.0],\"line_alpha\":[1.0],\"line_color\":[\"white\"],\"width\":[0.8],\"x\":[\"Italy\"],\"y\":[0.5]}},\"id\":\"b761e2db-4892-47e9-929b-b0dbe8978b4b\",\"type\":\"ColumnDataSource\"},{\"attributes\":{\"plot\":{\"id\":\"94a2836b-f34a-41f1-a6dc-b664a876ec4f\",\"subtype\":\"Chart\",\"type\":\"Plot\"}},\"id\":\"78ef6bf9-a63d-461e-a1b1-83af0b48333b\",\"type\":\"ResizeTool\"},{\"attributes\":{},\"id\":\"ae440f71-8605-42f6-926c-a783f80131fe\",\"type\":\"BasicTickFormatter\"},{\"attributes\":{\"callback\":null,\"column_names\":[\"line_color\",\"line_alpha\",\"color\",\"fill_alpha\",\"height\",\"width\",\"y\",\"x\"],\"data\":{\"chart_index\":[{\"countries\":\"Sudan (South Sudan)\"}],\"color\":[\"#3B6849\"],\"countries\":[\"Sudan (South Sudan)\"],\"fill_alpha\":[0.8],\"height\":[3.0],\"line_alpha\":[1.0],\"line_color\":[\"white\"],\"width\":[0.8],\"x\":[\"Sudan (South Sudan)\"],\"y\":[1.5]}},\"id\":\"e26a1455-d06a-43ec-9f11-81e724d6da72\",\"type\":\"ColumnDataSource\"},{\"attributes\":{},\"id\":\"00737aad-62a4-462f-9ac8-b3f419419097\",\"type\":\"BasicTicker\"},{\"attributes\":{\"callback\":null,\"column_names\":[\"line_color\",\"line_alpha\",\"color\",\"fill_alpha\",\"height\",\"width\",\"y\",\"x\"],\"data\":{\"chart_index\":[{\"countries\":\"Russia\"}],\"color\":[\"#3B6849\"],\"countries\":[\"Russia\"],\"fill_alpha\":[0.8],\"height\":[2.0],\"line_alpha\":[1.0],\"line_color\":[\"white\"],\"width\":[0.8],\"x\":[\"Russia\"],\"y\":[1.0]}},\"id\":\"ced77ae8-0501-4762-91f0-5d92ae8947a3\",\"type\":\"ColumnDataSource\"},{\"attributes\":{\"callback\":null,\"column_names\":[\"line_color\",\"line_alpha\",\"color\",\"fill_alpha\",\"height\",\"width\",\"y\",\"x\"],\"data\":{\"chart_index\":[{\"countries\":\"South Africa\"}],\"color\":[\"#3B6849\"],\"countries\":[\"South Africa\"],\"fill_alpha\":[0.8],\"height\":[1.0],\"line_alpha\":[1.0],\"line_color\":[\"white\"],\"width\":[0.8],\"x\":[\"South Africa\"],\"y\":[0.5]}},\"id\":\"c69ba7a8-c441-4755-9c95-d2e1f16b8e43\",\"type\":\"ColumnDataSource\"},{\"attributes\":{\"axis_label\":\"Countries\",\"formatter\":{\"id\":\"8793cfd8-2862-4e2a-b305-934ddc0f9c67\",\"type\":\"CategoricalTickFormatter\"},\"major_label_orientation\":0.7853981633974483,\"plot\":{\"id\":\"94a2836b-f34a-41f1-a6dc-b664a876ec4f\",\"subtype\":\"Chart\",\"type\":\"Plot\"},\"ticker\":{\"id\":\"3fdee970-c1b8-4889-9185-40f45be00d50\",\"type\":\"CategoricalTicker\"}},\"id\":\"bbbaf8e3-2d33-47d1-b2ba-5251aa2a4f5e\",\"type\":\"CategoricalAxis\"},{\"attributes\":{\"callback\":null,\"column_names\":[\"line_color\",\"line_alpha\",\"color\",\"fill_alpha\",\"height\",\"width\",\"y\",\"x\"],\"data\":{\"chart_index\":[{\"countries\":\"USA\"}],\"color\":[\"#3B6849\"],\"countries\":[\"USA\"],\"fill_alpha\":[0.8],\"height\":[3.0],\"line_alpha\":[1.0],\"line_color\":[\"white\"],\"width\":[0.8],\"x\":[\"USA\"],\"y\":[1.5]}},\"id\":\"251b63cb-1d7c-47d4-b743-fe0b7931d945\",\"type\":\"ColumnDataSource\"},{\"attributes\":{\"data_source\":{\"id\":\"ced77ae8-0501-4762-91f0-5d92ae8947a3\",\"type\":\"ColumnDataSource\"},\"glyph\":{\"id\":\"74c3c9dc-39c4-4065-bd85-9d7ac3ba7b9b\",\"type\":\"Rect\"},\"hover_glyph\":null,\"nonselection_glyph\":null,\"selection_glyph\":null},\"id\":\"24f712cc-26b1-4f89-86d2-b4df1492bdc9\",\"type\":\"GlyphRenderer\"},{\"attributes\":{\"plot\":{\"id\":\"94a2836b-f34a-41f1-a6dc-b664a876ec4f\",\"subtype\":\"Chart\",\"type\":\"Plot\"}},\"id\":\"1ec2b0ce-cce9-425a-bb38-14ee3ff6ac7f\",\"type\":\"HelpTool\"},{\"attributes\":{\"callback\":null,\"factors\":[\"Cote d'Ivoire (Ivory Coast)\",\"Democratic Republic of the Congo\",\"England\",\"Gabon\",\"Italy\",\"Philippines\",\"Russia\",\"South Africa\",\"Sudan (South Sudan)\",\"USA\",\"Uganda\"]},\"id\":\"b28edf6a-2dcd-40e1-845b-72bfb3914d38\",\"type\":\"FactorRange\"},{\"attributes\":{\"data_source\":{\"id\":\"34a48dc3-4528-41d9-ad23-8363c07a04ec\",\"type\":\"ColumnDataSource\"},\"glyph\":{\"id\":\"64485527-2d97-427d-ab79-f23fd0fe83e1\",\"type\":\"Rect\"},\"hover_glyph\":null,\"nonselection_glyph\":null,\"selection_glyph\":null},\"id\":\"62887af1-7bb6-4e87-8fa9-89131221cda2\",\"type\":\"GlyphRenderer\"},{\"attributes\":{\"axis_label\":\"Sum( Ebola Outbreaks )\",\"formatter\":{\"id\":\"ae440f71-8605-42f6-926c-a783f80131fe\",\"type\":\"BasicTickFormatter\"},\"plot\":{\"id\":\"94a2836b-f34a-41f1-a6dc-b664a876ec4f\",\"subtype\":\"Chart\",\"type\":\"Plot\"},\"ticker\":{\"id\":\"00737aad-62a4-462f-9ac8-b3f419419097\",\"type\":\"BasicTicker\"}},\"id\":\"fc909c9b-541c-468d-950c-e30c937186d7\",\"type\":\"LinearAxis\"},{\"attributes\":{\"data_source\":{\"id\":\"71c67479-88bb-402a-b6eb-c1008782daac\",\"type\":\"ColumnDataSource\"},\"glyph\":{\"id\":\"0d93c621-6d14-44c2-8cca-28d0700ca55f\",\"type\":\"Rect\"},\"hover_glyph\":null,\"nonselection_glyph\":null,\"selection_glyph\":null},\"id\":\"a9a92daa-3482-400d-8241-bbcde4a01c6c\",\"type\":\"GlyphRenderer\"},{\"attributes\":{\"bottom_units\":\"screen\",\"fill_alpha\":{\"value\":0.5},\"fill_color\":{\"value\":\"lightgrey\"},\"left_units\":\"screen\",\"level\":\"overlay\",\"line_alpha\":{\"value\":1.0},\"line_color\":{\"value\":\"black\"},\"line_dash\":[4,4],\"line_width\":{\"value\":2},\"plot\":null,\"render_mode\":\"css\",\"right_units\":\"screen\",\"top_units\":\"screen\"},\"id\":\"862bec32-99e6-4c9e-b90e-ca4a7092a977\",\"type\":\"BoxAnnotation\"},{\"attributes\":{\"data_source\":{\"id\":\"b761e2db-4892-47e9-929b-b0dbe8978b4b\",\"type\":\"ColumnDataSource\"},\"glyph\":{\"id\":\"346fdbc8-733f-4aa6-8d98-f99869c50f57\",\"type\":\"Rect\"},\"hover_glyph\":null,\"nonselection_glyph\":null,\"selection_glyph\":null},\"id\":\"067e6f3c-6bb3-4703-a5bf-0e7de9e1b1af\",\"type\":\"GlyphRenderer\"},{\"attributes\":{\"data_source\":{\"id\":\"8281a772-6da8-4ef7-947a-02804f1021c5\",\"type\":\"ColumnDataSource\"},\"glyph\":{\"id\":\"10702506-6d73-48f5-b9be-74c95576d7e3\",\"type\":\"Rect\"},\"hover_glyph\":null,\"nonselection_glyph\":null,\"selection_glyph\":null},\"id\":\"189acff1-88c6-4736-8da6-b53e9e1c24a5\",\"type\":\"GlyphRenderer\"},{\"attributes\":{\"plot\":{\"id\":\"94a2836b-f34a-41f1-a6dc-b664a876ec4f\",\"subtype\":\"Chart\",\"type\":\"Plot\"}},\"id\":\"114f4b54-c7fe-408f-a248-20d983bdeb21\",\"type\":\"WheelZoomTool\"},{\"attributes\":{\"callback\":null,\"column_names\":[\"line_color\",\"line_alpha\",\"color\",\"fill_alpha\",\"height\",\"width\",\"y\",\"x\"],\"data\":{\"chart_index\":[{\"countries\":\"Democratic Republic of the Congo\"}],\"color\":[\"#3B6849\"],\"countries\":[\"Democratic Republic of the Congo\"],\"fill_alpha\":[0.8],\"height\":[9.0],\"line_alpha\":[1.0],\"line_color\":[\"white\"],\"width\":[0.8],\"x\":[\"Democratic Republic of the Congo\"],\"y\":[4.5]}},\"id\":\"8281a772-6da8-4ef7-947a-02804f1021c5\",\"type\":\"ColumnDataSource\"},{\"attributes\":{\"fill_alpha\":{\"field\":\"fill_alpha\"},\"fill_color\":{\"field\":\"color\"},\"height\":{\"field\":\"height\",\"units\":\"data\"},\"line_color\":{\"field\":\"line_color\"},\"width\":{\"field\":\"width\",\"units\":\"data\"},\"x\":{\"field\":\"x\"},\"y\":{\"field\":\"y\"}},\"id\":\"a292e029-d7aa-4cfb-97f5-02bbf6cee6af\",\"type\":\"Rect\"},{\"attributes\":{\"fill_alpha\":{\"field\":\"fill_alpha\"},\"fill_color\":{\"field\":\"color\"},\"height\":{\"field\":\"height\",\"units\":\"data\"},\"line_color\":{\"field\":\"line_color\"},\"width\":{\"field\":\"width\",\"units\":\"data\"},\"x\":{\"field\":\"x\"},\"y\":{\"field\":\"y\"}},\"id\":\"e05387f6-00ac-40d3-926d-4d35bcdaa831\",\"type\":\"Rect\"},{\"attributes\":{},\"id\":\"fa5aacc5-6445-4f5c-b06c-c9d80f78384c\",\"type\":\"ToolEvents\"},{\"attributes\":{\"callback\":null,\"column_names\":[\"line_color\",\"line_alpha\",\"color\",\"fill_alpha\",\"height\",\"width\",\"y\",\"x\"],\"data\":{\"chart_index\":[{\"countries\":\"Cote d'Ivoire (Ivory Coast)\"}],\"color\":[\"#3B6849\"],\"countries\":[\"Cote d'Ivoire (Ivory Coast)\"],\"fill_alpha\":[0.8],\"height\":[1.0],\"line_alpha\":[1.0],\"line_color\":[\"white\"],\"width\":[0.8],\"x\":[\"Cote d'Ivoire (Ivory Coast)\"],\"y\":[0.5]}},\"id\":\"34a48dc3-4528-41d9-ad23-8363c07a04ec\",\"type\":\"ColumnDataSource\"},{\"attributes\":{\"data_source\":{\"id\":\"c69ba7a8-c441-4755-9c95-d2e1f16b8e43\",\"type\":\"ColumnDataSource\"},\"glyph\":{\"id\":\"e05387f6-00ac-40d3-926d-4d35bcdaa831\",\"type\":\"Rect\"},\"hover_glyph\":null,\"nonselection_glyph\":null,\"selection_glyph\":null},\"id\":\"fcfef1ee-912c-4e3d-97de-d0941838984c\",\"type\":\"GlyphRenderer\"},{\"attributes\":{\"callback\":null,\"column_names\":[\"line_color\",\"line_alpha\",\"color\",\"fill_alpha\",\"height\",\"width\",\"y\",\"x\"],\"data\":{\"chart_index\":[{\"countries\":\"England\"}],\"color\":[\"#3B6849\"],\"countries\":[\"England\"],\"fill_alpha\":[0.8],\"height\":[1.0],\"line_alpha\":[1.0],\"line_color\":[\"white\"],\"width\":[0.8],\"x\":[\"England\"],\"y\":[0.5]}},\"id\":\"00ac7d2e-aac4-425b-90af-0bfecc33d18d\",\"type\":\"ColumnDataSource\"},{\"attributes\":{\"fill_alpha\":{\"field\":\"fill_alpha\"},\"fill_color\":{\"field\":\"color\"},\"height\":{\"field\":\"height\",\"units\":\"data\"},\"line_color\":{\"field\":\"line_color\"},\"width\":{\"field\":\"width\",\"units\":\"data\"},\"x\":{\"field\":\"x\"},\"y\":{\"field\":\"y\"}},\"id\":\"f9b5f227-e840-4706-bcd9-b38de46ada58\",\"type\":\"Rect\"},{\"attributes\":{\"data_source\":{\"id\":\"e26a1455-d06a-43ec-9f11-81e724d6da72\",\"type\":\"ColumnDataSource\"},\"glyph\":{\"id\":\"a292e029-d7aa-4cfb-97f5-02bbf6cee6af\",\"type\":\"Rect\"},\"hover_glyph\":null,\"nonselection_glyph\":null,\"selection_glyph\":null},\"id\":\"8194ddca-8c06-4c6b-a742-bc11b053c2a8\",\"type\":\"GlyphRenderer\"},{\"attributes\":{\"fill_alpha\":{\"field\":\"fill_alpha\"},\"fill_color\":{\"field\":\"color\"},\"height\":{\"field\":\"height\",\"units\":\"data\"},\"line_color\":{\"field\":\"line_color\"},\"width\":{\"field\":\"width\",\"units\":\"data\"},\"x\":{\"field\":\"x\"},\"y\":{\"field\":\"y\"}},\"id\":\"d2bb27ae-dc54-4451-86fe-aa387c9786f2\",\"type\":\"Rect\"},{\"attributes\":{\"below\":[{\"id\":\"bbbaf8e3-2d33-47d1-b2ba-5251aa2a4f5e\",\"type\":\"CategoricalAxis\"}],\"left\":[{\"id\":\"fc909c9b-541c-468d-950c-e30c937186d7\",\"type\":\"LinearAxis\"}],\"legend\":null,\"plot_height\":500,\"renderers\":[{\"id\":\"862bec32-99e6-4c9e-b90e-ca4a7092a977\",\"type\":\"BoxAnnotation\"},{\"id\":\"24f712cc-26b1-4f89-86d2-b4df1492bdc9\",\"type\":\"GlyphRenderer\"},{\"id\":\"15ed60de-7f08-484d-b8d9-9a75d0db516b\",\"type\":\"GlyphRenderer\"},{\"id\":\"369a43b9-a3c0-42ac-a820-cdf089abf4b4\",\"type\":\"GlyphRenderer\"},{\"id\":\"e0a7703c-37e2-46b8-a2c0-b8096a17ef4f\",\"type\":\"GlyphRenderer\"},{\"id\":\"189acff1-88c6-4736-8da6-b53e9e1c24a5\",\"type\":\"GlyphRenderer\"},{\"id\":\"a9a92daa-3482-400d-8241-bbcde4a01c6c\",\"type\":\"GlyphRenderer\"},{\"id\":\"067e6f3c-6bb3-4703-a5bf-0e7de9e1b1af\",\"type\":\"GlyphRenderer\"},{\"id\":\"fcfef1ee-912c-4e3d-97de-d0941838984c\",\"type\":\"GlyphRenderer\"},{\"id\":\"8194ddca-8c06-4c6b-a742-bc11b053c2a8\",\"type\":\"GlyphRenderer\"},{\"id\":\"62887af1-7bb6-4e87-8fa9-89131221cda2\",\"type\":\"GlyphRenderer\"},{\"id\":\"05306f69-d819-4f54-b1d1-29c8dc6ba176\",\"type\":\"GlyphRenderer\"},{\"id\":\"bbbaf8e3-2d33-47d1-b2ba-5251aa2a4f5e\",\"type\":\"CategoricalAxis\"},{\"id\":\"fc909c9b-541c-468d-950c-e30c937186d7\",\"type\":\"LinearAxis\"},{\"id\":\"93111a99-439f-4fe1-ba2e-ca328c86276b\",\"type\":\"Grid\"}],\"title\":\"Number of ebola outbreak(s) per country\",\"title_text_font_size\":{\"value\":\"14pt\"},\"tool_events\":{\"id\":\"fa5aacc5-6445-4f5c-b06c-c9d80f78384c\",\"type\":\"ToolEvents\"},\"tools\":[{\"id\":\"f9c940c2-87a9-4862-9907-dc5eee31366c\",\"type\":\"PanTool\"},{\"id\":\"114f4b54-c7fe-408f-a248-20d983bdeb21\",\"type\":\"WheelZoomTool\"},{\"id\":\"88ef33ff-ebd0-4a3a-9857-9f24a0f30407\",\"type\":\"BoxZoomTool\"},{\"id\":\"ea011a8d-8e2f-40c2-97e0-d17a3d414d00\",\"type\":\"PreviewSaveTool\"},{\"id\":\"78ef6bf9-a63d-461e-a1b1-83af0b48333b\",\"type\":\"ResizeTool\"},{\"id\":\"78bd52a8-18c6-43d4-8f41-803133a4efeb\",\"type\":\"ResetTool\"},{\"id\":\"1ec2b0ce-cce9-425a-bb38-14ee3ff6ac7f\",\"type\":\"HelpTool\"}],\"x_mapper_type\":\"auto\",\"x_range\":{\"id\":\"b28edf6a-2dcd-40e1-845b-72bfb3914d38\",\"type\":\"FactorRange\"},\"xgrid\":false,\"xscale\":\"auto\",\"y_mapper_type\":\"auto\",\"y_range\":{\"id\":\"71425025-ecec-46d4-9833-30156af47abd\",\"type\":\"Range1d\"},\"yscale\":\"auto\"},\"id\":\"94a2836b-f34a-41f1-a6dc-b664a876ec4f\",\"subtype\":\"Chart\",\"type\":\"Plot\"},{\"attributes\":{\"data_source\":{\"id\":\"00ac7d2e-aac4-425b-90af-0bfecc33d18d\",\"type\":\"ColumnDataSource\"},\"glyph\":{\"id\":\"d2bb27ae-dc54-4451-86fe-aa387c9786f2\",\"type\":\"Rect\"},\"hover_glyph\":null,\"nonselection_glyph\":null,\"selection_glyph\":null},\"id\":\"05306f69-d819-4f54-b1d1-29c8dc6ba176\",\"type\":\"GlyphRenderer\"},{\"attributes\":{\"plot\":{\"id\":\"94a2836b-f34a-41f1-a6dc-b664a876ec4f\",\"subtype\":\"Chart\",\"type\":\"Plot\"}},\"id\":\"ea011a8d-8e2f-40c2-97e0-d17a3d414d00\",\"type\":\"PreviewSaveTool\"},{\"attributes\":{\"fill_alpha\":{\"field\":\"fill_alpha\"},\"fill_color\":{\"field\":\"color\"},\"height\":{\"field\":\"height\",\"units\":\"data\"},\"line_color\":{\"field\":\"line_color\"},\"width\":{\"field\":\"width\",\"units\":\"data\"},\"x\":{\"field\":\"x\"},\"y\":{\"field\":\"y\"}},\"id\":\"0d93c621-6d14-44c2-8cca-28d0700ca55f\",\"type\":\"Rect\"},{\"attributes\":{\"callback\":null,\"column_names\":[\"line_color\",\"line_alpha\",\"color\",\"fill_alpha\",\"height\",\"width\",\"y\",\"x\"],\"data\":{\"chart_index\":[{\"countries\":\"Gabon\"}],\"color\":[\"#3B6849\"],\"countries\":[\"Gabon\"],\"fill_alpha\":[0.8],\"height\":[4.0],\"line_alpha\":[1.0],\"line_color\":[\"white\"],\"width\":[0.8],\"x\":[\"Gabon\"],\"y\":[2.0]}},\"id\":\"9f00bdc3-dc23-4955-86b2-5c52a5e10473\",\"type\":\"ColumnDataSource\"},{\"attributes\":{\"fill_alpha\":{\"field\":\"fill_alpha\"},\"fill_color\":{\"field\":\"color\"},\"height\":{\"field\":\"height\",\"units\":\"data\"},\"line_color\":{\"field\":\"line_color\"},\"width\":{\"field\":\"width\",\"units\":\"data\"},\"x\":{\"field\":\"x\"},\"y\":{\"field\":\"y\"}},\"id\":\"10702506-6d73-48f5-b9be-74c95576d7e3\",\"type\":\"Rect\"},{\"attributes\":{},\"id\":\"3fdee970-c1b8-4889-9185-40f45be00d50\",\"type\":\"CategoricalTicker\"},{\"attributes\":{\"plot\":{\"id\":\"94a2836b-f34a-41f1-a6dc-b664a876ec4f\",\"subtype\":\"Chart\",\"type\":\"Plot\"}},\"id\":\"f9c940c2-87a9-4862-9907-dc5eee31366c\",\"type\":\"PanTool\"},{\"attributes\":{\"data_source\":{\"id\":\"251b63cb-1d7c-47d4-b743-fe0b7931d945\",\"type\":\"ColumnDataSource\"},\"glyph\":{\"id\":\"17755ee5-062b-49b0-ad3e-992bacac18df\",\"type\":\"Rect\"},\"hover_glyph\":null,\"nonselection_glyph\":null,\"selection_glyph\":null},\"id\":\"369a43b9-a3c0-42ac-a820-cdf089abf4b4\",\"type\":\"GlyphRenderer\"},{\"attributes\":{\"fill_alpha\":{\"field\":\"fill_alpha\"},\"fill_color\":{\"field\":\"color\"},\"height\":{\"field\":\"height\",\"units\":\"data\"},\"line_color\":{\"field\":\"line_color\"},\"width\":{\"field\":\"width\",\"units\":\"data\"},\"x\":{\"field\":\"x\"},\"y\":{\"field\":\"y\"}},\"id\":\"74c3c9dc-39c4-4065-bd85-9d7ac3ba7b9b\",\"type\":\"Rect\"},{\"attributes\":{\"data_source\":{\"id\":\"9f00bdc3-dc23-4955-86b2-5c52a5e10473\",\"type\":\"ColumnDataSource\"},\"glyph\":{\"id\":\"f9b5f227-e840-4706-bcd9-b38de46ada58\",\"type\":\"Rect\"},\"hover_glyph\":null,\"nonselection_glyph\":null,\"selection_glyph\":null},\"id\":\"e0a7703c-37e2-46b8-a2c0-b8096a17ef4f\",\"type\":\"GlyphRenderer\"},{\"attributes\":{\"callback\":null,\"end\":9.45},\"id\":\"71425025-ecec-46d4-9833-30156af47abd\",\"type\":\"Range1d\"},{\"attributes\":{\"fill_alpha\":{\"field\":\"fill_alpha\"},\"fill_color\":{\"field\":\"color\"},\"height\":{\"field\":\"height\",\"units\":\"data\"},\"line_color\":{\"field\":\"line_color\"},\"width\":{\"field\":\"width\",\"units\":\"data\"},\"x\":{\"field\":\"x\"},\"y\":{\"field\":\"y\"}},\"id\":\"346fdbc8-733f-4aa6-8d98-f99869c50f57\",\"type\":\"Rect\"},{\"attributes\":{\"fill_alpha\":{\"field\":\"fill_alpha\"},\"fill_color\":{\"field\":\"color\"},\"height\":{\"field\":\"height\",\"units\":\"data\"},\"line_color\":{\"field\":\"line_color\"},\"width\":{\"field\":\"width\",\"units\":\"data\"},\"x\":{\"field\":\"x\"},\"y\":{\"field\":\"y\"}},\"id\":\"64485527-2d97-427d-ab79-f23fd0fe83e1\",\"type\":\"Rect\"},{\"attributes\":{\"data_source\":{\"id\":\"ebf07938-d42a-4039-a501-ee3192a1c854\",\"type\":\"ColumnDataSource\"},\"glyph\":{\"id\":\"0905d67a-d776-4a36-aa07-4df48ef01119\",\"type\":\"Rect\"},\"hover_glyph\":null,\"nonselection_glyph\":null,\"selection_glyph\":null},\"id\":\"15ed60de-7f08-484d-b8d9-9a75d0db516b\",\"type\":\"GlyphRenderer\"},{\"attributes\":{\"callback\":null,\"column_names\":[\"line_color\",\"line_alpha\",\"color\",\"fill_alpha\",\"height\",\"width\",\"y\",\"x\"],\"data\":{\"chart_index\":[{\"countries\":\"Philippines\"}],\"color\":[\"#3B6849\"],\"countries\":[\"Philippines\"],\"fill_alpha\":[0.8],\"height\":[3.0],\"line_alpha\":[1.0],\"line_color\":[\"white\"],\"width\":[0.8],\"x\":[\"Philippines\"],\"y\":[1.5]}},\"id\":\"ebf07938-d42a-4039-a501-ee3192a1c854\",\"type\":\"ColumnDataSource\"},{\"attributes\":{\"callback\":null,\"column_names\":[\"line_color\",\"line_alpha\",\"color\",\"fill_alpha\",\"height\",\"width\",\"y\",\"x\"],\"data\":{\"chart_index\":[{\"countries\":\"Uganda\"}],\"color\":[\"#3B6849\"],\"countries\":[\"Uganda\"],\"fill_alpha\":[0.8],\"height\":[5.0],\"line_alpha\":[1.0],\"line_color\":[\"white\"],\"width\":[0.8],\"x\":[\"Uganda\"],\"y\":[2.5]}},\"id\":\"71c67479-88bb-402a-b6eb-c1008782daac\",\"type\":\"ColumnDataSource\"},{\"attributes\":{},\"id\":\"8793cfd8-2862-4e2a-b305-934ddc0f9c67\",\"type\":\"CategoricalTickFormatter\"}],\"root_ids\":[\"94a2836b-f34a-41f1-a6dc-b664a876ec4f\"]},\"title\":\"Bokeh Application\",\"version\":\"0.11.1\"}};\n",
       "            var render_items = [{\"docid\":\"f58b6b98-ed59-4027-bb52-3748158c1914\",\"elementid\":\"6e46004f-a0b7-4963-a38a-68194b1990ac\",\"modelid\":\"94a2836b-f34a-41f1-a6dc-b664a876ec4f\",\"notebook_comms_target\":\"c13d34bd-d7c1-4136-aa25-00d309e83282\"}];\n",
       "            \n",
       "            Bokeh.embed.embed_items(docs_json, render_items);\n",
       "        });\n",
       "      },\n",
       "      function(Bokeh) {\n",
       "      }\n",
       "    ];\n",
       "  \n",
       "    function run_inline_js() {\n",
       "      for (var i = 0; i < inline_js.length; i++) {\n",
       "        inline_js[i](window.Bokeh);\n",
       "      }\n",
       "    }\n",
       "  \n",
       "    if (window._bokeh_is_loading === 0) {\n",
       "      console.log(\"Bokeh: BokehJS loaded, going straight to plotting\");\n",
       "      run_inline_js();\n",
       "    } else {\n",
       "      load_libs(js_urls, function() {\n",
       "        console.log(\"Bokeh: BokehJS plotting callback run at\", now());\n",
       "        run_inline_js();\n",
       "      });\n",
       "    }\n",
       "  }(this));\n",
       "</script>"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "data": {
      "text/html": [
       "<p><code>&lt;Bokeh Notebook handle for <strong>In[5]</strong>&gt;</code></p>"
      ],
      "text/plain": [
       "<bokeh.io._CommsHandle at 0x7f1f269c41d0>"
      ]
     },
     "execution_count": 5,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "data_nb = {\n",
    "    'countries': countries_list,\n",
    "    'ebola outbreaks': [1] * len(countries_list)\n",
    "}\n",
    "\n",
    "bar_nb = Bar(data_nb, values='ebola outbreaks', label='countries', agg='sum', color=\"#3B6849\",\n",
    "          title=\"Number of ebola outbreak(s) per country\", plot_width=600, plot_height=500)\n",
    "\n",
    "\n",
    "output_notebook()\n",
    "\n",
    "show(bar_nb)"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "### The average number of days for an outbreak per country"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 6,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "data": {
      "text/plain": [
       "country_name\n",
       "Uganda                              206.800000\n",
       "Gabon                               219.750000\n",
       "Democratic Republic of the Congo    235.444444\n",
       "Côte d'Ivoire (Ivory Coast)         364.000000\n",
       "USA                                 364.333333\n",
       "Philippines                         364.666667\n",
       "Sudan (South Sudan)                 364.666667\n",
       "England                             365.000000\n",
       "Italy                               365.000000\n",
       "Russia                              365.000000\n",
       "South Africa                        365.000000\n",
       "Name: duration_days, dtype: float64"
      ]
     },
     "execution_count": 6,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "ebola_data.groupby([\"country_name\"])[\"duration_days\"].mean().order()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 7,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "data": {
      "text/html": [
       "\n",
       "    <div class=\"bk-banner\">\n",
       "        <a href=\"http://bokeh.pydata.org\" target=\"_blank\" class=\"bk-logo bk-logo-small bk-logo-notebook\"></a>\n",
       "        <span id=\"1237b5bc-c5d6-44a8-b41d-2413d3ded0be\">Loading BokehJS ...</span>\n",
       "    </div>"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "data": {
      "application/javascript": [
       "\n",
       "(function(global) {\n",
       "  function now() {\n",
       "    return new Date();\n",
       "  }\n",
       "\n",
       "  if (typeof (window._bokeh_onload_callbacks) === \"undefined\") {\n",
       "    window._bokeh_onload_callbacks = [];\n",
       "  }\n",
       "\n",
       "  function run_callbacks() {\n",
       "    window._bokeh_onload_callbacks.forEach(function(callback) { callback() });\n",
       "    delete window._bokeh_onload_callbacks\n",
       "    console.info(\"Bokeh: all callbacks have finished\");\n",
       "  }\n",
       "\n",
       "  function load_libs(js_urls, callback) {\n",
       "    window._bokeh_onload_callbacks.push(callback);\n",
       "    if (window._bokeh_is_loading > 0) {\n",
       "      console.log(\"Bokeh: BokehJS is being loaded, scheduling callback at\", now());\n",
       "      return null;\n",
       "    }\n",
       "    if (js_urls == null || js_urls.length === 0) {\n",
       "      run_callbacks();\n",
       "      return null;\n",
       "    }\n",
       "    console.log(\"Bokeh: BokehJS not loaded, scheduling load and callback at\", now());\n",
       "    window._bokeh_is_loading = js_urls.length;\n",
       "    for (var i = 0; i < js_urls.length; i++) {\n",
       "      var url = js_urls[i];\n",
       "      var s = document.createElement('script');\n",
       "      s.src = url;\n",
       "      s.async = false;\n",
       "      s.onreadystatechange = s.onload = function() {\n",
       "        window._bokeh_is_loading--;\n",
       "        if (window._bokeh_is_loading === 0) {\n",
       "          console.log(\"Bokeh: all BokehJS libraries loaded\");\n",
       "          run_callbacks()\n",
       "        }\n",
       "      };\n",
       "      s.onerror = function() {\n",
       "        console.warn(\"failed to load library \" + url);\n",
       "      };\n",
       "      console.log(\"Bokeh: injecting script tag for BokehJS library: \", url);\n",
       "      document.getElementsByTagName(\"head\")[0].appendChild(s);\n",
       "    }\n",
       "  };\n",
       "\n",
       "  var js_urls = ['https://cdn.pydata.org/bokeh/release/bokeh-0.11.1.min.js', 'https://cdn.pydata.org/bokeh/release/bokeh-widgets-0.11.1.min.js', 'https://cdn.pydata.org/bokeh/release/bokeh-compiler-0.11.1.min.js'];\n",
       "\n",
       "  var inline_js = [\n",
       "    function(Bokeh) {\n",
       "      Bokeh.set_log_level(\"info\");\n",
       "    },\n",
       "    \n",
       "    function(Bokeh) {\n",
       "      Bokeh.$(\"#1237b5bc-c5d6-44a8-b41d-2413d3ded0be\").text(\"BokehJS successfully loaded\");\n",
       "    },\n",
       "    function(Bokeh) {\n",
       "      console.log(\"Bokeh: injecting CSS: https://cdn.pydata.org/bokeh/release/bokeh-0.11.1.min.css\");\n",
       "      Bokeh.embed.inject_css(\"https://cdn.pydata.org/bokeh/release/bokeh-0.11.1.min.css\");\n",
       "      console.log(\"Bokeh: injecting CSS: https://cdn.pydata.org/bokeh/release/bokeh-widgets-0.11.1.min.css\");\n",
       "      Bokeh.embed.inject_css(\"https://cdn.pydata.org/bokeh/release/bokeh-widgets-0.11.1.min.css\");\n",
       "    }\n",
       "  ];\n",
       "\n",
       "  function run_inline_js() {\n",
       "    for (var i = 0; i < inline_js.length; i++) {\n",
       "      inline_js[i](window.Bokeh);\n",
       "    }\n",
       "  }\n",
       "\n",
       "  if (window._bokeh_is_loading === 0) {\n",
       "    console.log(\"Bokeh: BokehJS loaded, going straight to plotting\");\n",
       "    run_inline_js();\n",
       "  } else {\n",
       "    load_libs(js_urls, function() {\n",
       "      console.log(\"Bokeh: BokehJS plotting callback run at\", now());\n",
       "      run_inline_js();\n",
       "    });\n",
       "  }\n",
       "}(this));"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "data": {
      "text/html": [
       "\n",
       "\n",
       "    <div class=\"plotdiv\" id=\"ede8c18b-5ba1-4457-9580-aea85e28b2c0\"></div>\n",
       "<script type=\"text/javascript\">\n",
       "  \n",
       "  (function(global) {\n",
       "    function now() {\n",
       "      return new Date();\n",
       "    }\n",
       "  \n",
       "    if (typeof (window._bokeh_onload_callbacks) === \"undefined\") {\n",
       "      window._bokeh_onload_callbacks = [];\n",
       "    }\n",
       "  \n",
       "    function run_callbacks() {\n",
       "      window._bokeh_onload_callbacks.forEach(function(callback) { callback() });\n",
       "      delete window._bokeh_onload_callbacks\n",
       "      console.info(\"Bokeh: all callbacks have finished\");\n",
       "    }\n",
       "  \n",
       "    function load_libs(js_urls, callback) {\n",
       "      window._bokeh_onload_callbacks.push(callback);\n",
       "      if (window._bokeh_is_loading > 0) {\n",
       "        console.log(\"Bokeh: BokehJS is being loaded, scheduling callback at\", now());\n",
       "        return null;\n",
       "      }\n",
       "      if (js_urls == null || js_urls.length === 0) {\n",
       "        run_callbacks();\n",
       "        return null;\n",
       "      }\n",
       "      console.log(\"Bokeh: BokehJS not loaded, scheduling load and callback at\", now());\n",
       "      window._bokeh_is_loading = js_urls.length;\n",
       "      for (var i = 0; i < js_urls.length; i++) {\n",
       "        var url = js_urls[i];\n",
       "        var s = document.createElement('script');\n",
       "        s.src = url;\n",
       "        s.async = false;\n",
       "        s.onreadystatechange = s.onload = function() {\n",
       "          window._bokeh_is_loading--;\n",
       "          if (window._bokeh_is_loading === 0) {\n",
       "            console.log(\"Bokeh: all BokehJS libraries loaded\");\n",
       "            run_callbacks()\n",
       "          }\n",
       "        };\n",
       "        s.onerror = function() {\n",
       "          console.warn(\"failed to load library \" + url);\n",
       "        };\n",
       "        console.log(\"Bokeh: injecting script tag for BokehJS library: \", url);\n",
       "        document.getElementsByTagName(\"head\")[0].appendChild(s);\n",
       "      }\n",
       "    };var element = document.getElementById(\"ede8c18b-5ba1-4457-9580-aea85e28b2c0\");\n",
       "    if (element == null) {\n",
       "      console.log(\"Bokeh: ERROR: autoload.js configured with elementid 'ede8c18b-5ba1-4457-9580-aea85e28b2c0' but no matching script tag was found. \")\n",
       "      return false;\n",
       "    }\n",
       "  \n",
       "    var js_urls = [];\n",
       "  \n",
       "    var inline_js = [\n",
       "      function(Bokeh) {\n",
       "        Bokeh.$(function() {\n",
       "            var docs_json = {\"75adc6a0-d44f-4ae1-b204-12211f43b066\":{\"roots\":{\"references\":[{\"attributes\":{\"plot\":{\"id\":\"94a2836b-f34a-41f1-a6dc-b664a876ec4f\",\"subtype\":\"Chart\",\"type\":\"Plot\"}},\"id\":\"78bd52a8-18c6-43d4-8f41-803133a4efeb\",\"type\":\"ResetTool\"},{\"attributes\":{\"dimension\":1,\"plot\":{\"id\":\"94a2836b-f34a-41f1-a6dc-b664a876ec4f\",\"subtype\":\"Chart\",\"type\":\"Plot\"},\"ticker\":{\"id\":\"00737aad-62a4-462f-9ac8-b3f419419097\",\"type\":\"BasicTicker\"}},\"id\":\"93111a99-439f-4fe1-ba2e-ca328c86276b\",\"type\":\"Grid\"},{\"attributes\":{\"callback\":null,\"column_names\":[\"line_color\",\"line_alpha\",\"color\",\"fill_alpha\",\"height\",\"width\",\"y\",\"x\"],\"data\":{\"chart_index\":[{\"countries\":\"Italy\"}],\"color\":[\"#3B6849\"],\"countries\":[\"Italy\"],\"fill_alpha\":[0.8],\"height\":[1.0],\"line_alpha\":[1.0],\"line_color\":[\"white\"],\"width\":[0.8],\"x\":[\"Italy\"],\"y\":[0.5]}},\"id\":\"b761e2db-4892-47e9-929b-b0dbe8978b4b\",\"type\":\"ColumnDataSource\"},{\"attributes\":{\"data_source\":{\"id\":\"531c0536-0479-4549-928d-64b52060c311\",\"type\":\"ColumnDataSource\"},\"glyph\":{\"id\":\"5cf38e75-bcba-4536-9846-a98ca09bd646\",\"type\":\"Rect\"},\"hover_glyph\":null,\"nonselection_glyph\":null,\"selection_glyph\":null},\"id\":\"76b8317f-2d15-43f9-9914-7aa124bb7cdb\",\"type\":\"GlyphRenderer\"},{\"attributes\":{\"data_source\":{\"id\":\"ba5aa1bf-79ba-4b89-8658-84a2ae9b549d\",\"type\":\"ColumnDataSource\"},\"glyph\":{\"id\":\"5ffbe628-fd26-4a7e-8804-c926acf40a4d\",\"type\":\"Rect\"},\"hover_glyph\":null,\"nonselection_glyph\":null,\"selection_glyph\":null},\"id\":\"0224c2e3-59d8-4010-92b8-ea416c1a7f9e\",\"type\":\"GlyphRenderer\"},{\"attributes\":{\"fill_alpha\":{\"field\":\"fill_alpha\"},\"fill_color\":{\"field\":\"color\"},\"height\":{\"field\":\"height\",\"units\":\"data\"},\"line_color\":{\"field\":\"line_color\"},\"width\":{\"field\":\"width\",\"units\":\"data\"},\"x\":{\"field\":\"x\"},\"y\":{\"field\":\"y\"}},\"id\":\"3c8f74bd-266c-4356-b31f-c53e5a721865\",\"type\":\"Rect\"},{\"attributes\":{\"axis_label\":\"Countries\",\"formatter\":{\"id\":\"8793cfd8-2862-4e2a-b305-934ddc0f9c67\",\"type\":\"CategoricalTickFormatter\"},\"major_label_orientation\":0.7853981633974483,\"plot\":{\"id\":\"94a2836b-f34a-41f1-a6dc-b664a876ec4f\",\"subtype\":\"Chart\",\"type\":\"Plot\"},\"ticker\":{\"id\":\"3fdee970-c1b8-4889-9185-40f45be00d50\",\"type\":\"CategoricalTicker\"}},\"id\":\"bbbaf8e3-2d33-47d1-b2ba-5251aa2a4f5e\",\"type\":\"CategoricalAxis\"},{\"attributes\":{\"bottom_units\":\"screen\",\"fill_alpha\":{\"value\":0.5},\"fill_color\":{\"value\":\"lightgrey\"},\"left_units\":\"screen\",\"level\":\"overlay\",\"line_alpha\":{\"value\":1.0},\"line_color\":{\"value\":\"black\"},\"line_dash\":[4,4],\"line_width\":{\"value\":2},\"plot\":null,\"render_mode\":\"css\",\"right_units\":\"screen\",\"top_units\":\"screen\"},\"id\":\"c9e53a22-0486-4f0d-be31-632a6aba435e\",\"type\":\"BoxAnnotation\"},{\"attributes\":{\"below\":[{\"id\":\"bbbaf8e3-2d33-47d1-b2ba-5251aa2a4f5e\",\"type\":\"CategoricalAxis\"}],\"left\":[{\"id\":\"fc909c9b-541c-468d-950c-e30c937186d7\",\"type\":\"LinearAxis\"}],\"legend\":null,\"plot_height\":500,\"renderers\":[{\"id\":\"862bec32-99e6-4c9e-b90e-ca4a7092a977\",\"type\":\"BoxAnnotation\"},{\"id\":\"24f712cc-26b1-4f89-86d2-b4df1492bdc9\",\"type\":\"GlyphRenderer\"},{\"id\":\"15ed60de-7f08-484d-b8d9-9a75d0db516b\",\"type\":\"GlyphRenderer\"},{\"id\":\"369a43b9-a3c0-42ac-a820-cdf089abf4b4\",\"type\":\"GlyphRenderer\"},{\"id\":\"e0a7703c-37e2-46b8-a2c0-b8096a17ef4f\",\"type\":\"GlyphRenderer\"},{\"id\":\"189acff1-88c6-4736-8da6-b53e9e1c24a5\",\"type\":\"GlyphRenderer\"},{\"id\":\"a9a92daa-3482-400d-8241-bbcde4a01c6c\",\"type\":\"GlyphRenderer\"},{\"id\":\"067e6f3c-6bb3-4703-a5bf-0e7de9e1b1af\",\"type\":\"GlyphRenderer\"},{\"id\":\"fcfef1ee-912c-4e3d-97de-d0941838984c\",\"type\":\"GlyphRenderer\"},{\"id\":\"8194ddca-8c06-4c6b-a742-bc11b053c2a8\",\"type\":\"GlyphRenderer\"},{\"id\":\"62887af1-7bb6-4e87-8fa9-89131221cda2\",\"type\":\"GlyphRenderer\"},{\"id\":\"05306f69-d819-4f54-b1d1-29c8dc6ba176\",\"type\":\"GlyphRenderer\"},{\"id\":\"bbbaf8e3-2d33-47d1-b2ba-5251aa2a4f5e\",\"type\":\"CategoricalAxis\"},{\"id\":\"fc909c9b-541c-468d-950c-e30c937186d7\",\"type\":\"LinearAxis\"},{\"id\":\"93111a99-439f-4fe1-ba2e-ca328c86276b\",\"type\":\"Grid\"}],\"title\":\"Number of ebola outbreak(s) per country\",\"title_text_font_size\":{\"value\":\"14pt\"},\"tool_events\":{\"id\":\"fa5aacc5-6445-4f5c-b06c-c9d80f78384c\",\"type\":\"ToolEvents\"},\"tools\":[{\"id\":\"f9c940c2-87a9-4862-9907-dc5eee31366c\",\"type\":\"PanTool\"},{\"id\":\"114f4b54-c7fe-408f-a248-20d983bdeb21\",\"type\":\"WheelZoomTool\"},{\"id\":\"88ef33ff-ebd0-4a3a-9857-9f24a0f30407\",\"type\":\"BoxZoomTool\"},{\"id\":\"ea011a8d-8e2f-40c2-97e0-d17a3d414d00\",\"type\":\"PreviewSaveTool\"},{\"id\":\"78ef6bf9-a63d-461e-a1b1-83af0b48333b\",\"type\":\"ResizeTool\"},{\"id\":\"78bd52a8-18c6-43d4-8f41-803133a4efeb\",\"type\":\"ResetTool\"},{\"id\":\"1ec2b0ce-cce9-425a-bb38-14ee3ff6ac7f\",\"type\":\"HelpTool\"}],\"x_mapper_type\":\"auto\",\"x_range\":{\"id\":\"b28edf6a-2dcd-40e1-845b-72bfb3914d38\",\"type\":\"FactorRange\"},\"xgrid\":false,\"xscale\":\"auto\",\"y_mapper_type\":\"auto\",\"y_range\":{\"id\":\"71425025-ecec-46d4-9833-30156af47abd\",\"type\":\"Range1d\"},\"yscale\":\"auto\"},\"id\":\"94a2836b-f34a-41f1-a6dc-b664a876ec4f\",\"subtype\":\"Chart\",\"type\":\"Plot\"},{\"attributes\":{\"data_source\":{\"id\":\"b761e2db-4892-47e9-929b-b0dbe8978b4b\",\"type\":\"ColumnDataSource\"},\"glyph\":{\"id\":\"346fdbc8-733f-4aa6-8d98-f99869c50f57\",\"type\":\"Rect\"},\"hover_glyph\":null,\"nonselection_glyph\":null,\"selection_glyph\":null},\"id\":\"067e6f3c-6bb3-4703-a5bf-0e7de9e1b1af\",\"type\":\"GlyphRenderer\"},{\"attributes\":{\"plot\":{\"id\":\"94a2836b-f34a-41f1-a6dc-b664a876ec4f\",\"subtype\":\"Chart\",\"type\":\"Plot\"}},\"id\":\"114f4b54-c7fe-408f-a248-20d983bdeb21\",\"type\":\"WheelZoomTool\"},{\"attributes\":{\"plot\":{\"id\":\"5ddd1913-0a0f-470f-a1a2-5904622f9c57\",\"subtype\":\"Chart\",\"type\":\"Plot\"}},\"id\":\"c5144f72-b978-4017-989e-72517066218c\",\"type\":\"WheelZoomTool\"},{\"attributes\":{\"callback\":null,\"column_names\":[\"line_color\",\"line_alpha\",\"color\",\"fill_alpha\",\"height\",\"width\",\"y\",\"x\"],\"data\":{\"chart_index\":[{\"countries\":\"USA\"}],\"color\":[\"#586996\"],\"countries\":[\"USA\"],\"fill_alpha\":[0.8],\"height\":[364.3333333333333],\"line_alpha\":[1.0],\"line_color\":[\"white\"],\"width\":[0.8],\"x\":[\"USA\"],\"y\":[182.16666666666666]}},\"id\":\"531c0536-0479-4549-928d-64b52060c311\",\"type\":\"ColumnDataSource\"},{\"attributes\":{\"overlay\":{\"id\":\"c9e53a22-0486-4f0d-be31-632a6aba435e\",\"type\":\"BoxAnnotation\"},\"plot\":{\"id\":\"5ddd1913-0a0f-470f-a1a2-5904622f9c57\",\"subtype\":\"Chart\",\"type\":\"Plot\"}},\"id\":\"490c1bd2-b218-4722-8fba-b936a56b9d90\",\"type\":\"BoxZoomTool\"},{\"attributes\":{\"callback\":null,\"column_names\":[\"line_color\",\"line_alpha\",\"color\",\"fill_alpha\",\"height\",\"width\",\"y\",\"x\"],\"data\":{\"chart_index\":[{\"countries\":\"Uganda\"}],\"color\":[\"#586996\"],\"countries\":[\"Uganda\"],\"fill_alpha\":[0.8],\"height\":[206.8],\"line_alpha\":[1.0],\"line_color\":[\"white\"],\"width\":[0.8],\"x\":[\"Uganda\"],\"y\":[103.4]}},\"id\":\"d2bf3ebe-f0ac-42ef-860d-9161af3a4d86\",\"type\":\"ColumnDataSource\"},{\"attributes\":{\"plot\":{\"id\":\"5ddd1913-0a0f-470f-a1a2-5904622f9c57\",\"subtype\":\"Chart\",\"type\":\"Plot\"}},\"id\":\"0be69570-c3b4-464e-8ecf-628b31845c55\",\"type\":\"ResetTool\"},{\"attributes\":{\"fill_alpha\":{\"field\":\"fill_alpha\"},\"fill_color\":{\"field\":\"color\"},\"height\":{\"field\":\"height\",\"units\":\"data\"},\"line_color\":{\"field\":\"line_color\"},\"width\":{\"field\":\"width\",\"units\":\"data\"},\"x\":{\"field\":\"x\"},\"y\":{\"field\":\"y\"}},\"id\":\"5cf38e75-bcba-4536-9846-a98ca09bd646\",\"type\":\"Rect\"},{\"attributes\":{\"callback\":null,\"column_names\":[\"line_color\",\"line_alpha\",\"color\",\"fill_alpha\",\"height\",\"width\",\"y\",\"x\"],\"data\":{\"chart_index\":[{\"countries\":\"Democratic Republic of the Congo\"}],\"color\":[\"#586996\"],\"countries\":[\"Democratic Republic of the Congo\"],\"fill_alpha\":[0.8],\"height\":[235.44444444444446],\"line_alpha\":[1.0],\"line_color\":[\"white\"],\"width\":[0.8],\"x\":[\"Democratic Republic of the Congo\"],\"y\":[117.72222222222223]}},\"id\":\"32712fa8-4d0c-4191-8abc-747a1afc3d33\",\"type\":\"ColumnDataSource\"},{\"attributes\":{\"fill_alpha\":{\"field\":\"fill_alpha\"},\"fill_color\":{\"field\":\"color\"},\"height\":{\"field\":\"height\",\"units\":\"data\"},\"line_color\":{\"field\":\"line_color\"},\"width\":{\"field\":\"width\",\"units\":\"data\"},\"x\":{\"field\":\"x\"},\"y\":{\"field\":\"y\"}},\"id\":\"d2bb27ae-dc54-4451-86fe-aa387c9786f2\",\"type\":\"Rect\"},{\"attributes\":{\"data_source\":{\"id\":\"5d9a699b-6b2f-441c-b8a4-a41b75544920\",\"type\":\"ColumnDataSource\"},\"glyph\":{\"id\":\"eb07364e-c0e9-419d-9e54-faef2bee5305\",\"type\":\"Rect\"},\"hover_glyph\":null,\"nonselection_glyph\":null,\"selection_glyph\":null},\"id\":\"21ce9503-6d4c-4f5e-857b-cb8f6e598222\",\"type\":\"GlyphRenderer\"},{\"attributes\":{\"fill_alpha\":{\"field\":\"fill_alpha\"},\"fill_color\":{\"field\":\"color\"},\"height\":{\"field\":\"height\",\"units\":\"data\"},\"line_color\":{\"field\":\"line_color\"},\"width\":{\"field\":\"width\",\"units\":\"data\"},\"x\":{\"field\":\"x\"},\"y\":{\"field\":\"y\"}},\"id\":\"0d93c621-6d14-44c2-8cca-28d0700ca55f\",\"type\":\"Rect\"},{\"attributes\":{\"callback\":null,\"column_names\":[\"line_color\",\"line_alpha\",\"color\",\"fill_alpha\",\"height\",\"width\",\"y\",\"x\"],\"data\":{\"chart_index\":[{\"countries\":\"Cote d'Ivoire (Ivory Coast)\"}],\"color\":[\"#586996\"],\"countries\":[\"Cote d'Ivoire (Ivory Coast)\"],\"fill_alpha\":[0.8],\"height\":[364.0],\"line_alpha\":[1.0],\"line_color\":[\"white\"],\"width\":[0.8],\"x\":[\"Cote d'Ivoire (Ivory Coast)\"],\"y\":[182.0]}},\"id\":\"5d9a699b-6b2f-441c-b8a4-a41b75544920\",\"type\":\"ColumnDataSource\"},{\"attributes\":{\"callback\":null,\"factors\":[\"Cote d'Ivoire (Ivory Coast)\",\"Democratic Republic of the Congo\",\"England\",\"Gabon\",\"Italy\",\"Philippines\",\"Russia\",\"South Africa\",\"Sudan (South Sudan)\",\"USA\",\"Uganda\"]},\"id\":\"d16f42b1-e5c9-4790-8ee4-356b258cf228\",\"type\":\"FactorRange\"},{\"attributes\":{\"fill_alpha\":{\"field\":\"fill_alpha\"},\"fill_color\":{\"field\":\"color\"},\"height\":{\"field\":\"height\",\"units\":\"data\"},\"line_color\":{\"field\":\"line_color\"},\"width\":{\"field\":\"width\",\"units\":\"data\"},\"x\":{\"field\":\"x\"},\"y\":{\"field\":\"y\"}},\"id\":\"346fdbc8-733f-4aa6-8d98-f99869c50f57\",\"type\":\"Rect\"},{\"attributes\":{\"callback\":null,\"column_names\":[\"line_color\",\"line_alpha\",\"color\",\"fill_alpha\",\"height\",\"width\",\"y\",\"x\"],\"data\":{\"chart_index\":[{\"countries\":\"Uganda\"}],\"color\":[\"#3B6849\"],\"countries\":[\"Uganda\"],\"fill_alpha\":[0.8],\"height\":[5.0],\"line_alpha\":[1.0],\"line_color\":[\"white\"],\"width\":[0.8],\"x\":[\"Uganda\"],\"y\":[2.5]}},\"id\":\"71c67479-88bb-402a-b6eb-c1008782daac\",\"type\":\"ColumnDataSource\"},{\"attributes\":{},\"id\":\"8793cfd8-2862-4e2a-b305-934ddc0f9c67\",\"type\":\"CategoricalTickFormatter\"},{\"attributes\":{\"fill_alpha\":{\"field\":\"fill_alpha\"},\"fill_color\":{\"field\":\"color\"},\"height\":{\"field\":\"height\",\"units\":\"data\"},\"line_color\":{\"field\":\"line_color\"},\"width\":{\"field\":\"width\",\"units\":\"data\"},\"x\":{\"field\":\"x\"},\"y\":{\"field\":\"y\"}},\"id\":\"17755ee5-062b-49b0-ad3e-992bacac18df\",\"type\":\"Rect\"},{\"attributes\":{},\"id\":\"ae440f71-8605-42f6-926c-a783f80131fe\",\"type\":\"BasicTickFormatter\"},{\"attributes\":{\"fill_alpha\":{\"field\":\"fill_alpha\"},\"fill_color\":{\"field\":\"color\"},\"height\":{\"field\":\"height\",\"units\":\"data\"},\"line_color\":{\"field\":\"line_color\"},\"width\":{\"field\":\"width\",\"units\":\"data\"},\"x\":{\"field\":\"x\"},\"y\":{\"field\":\"y\"}},\"id\":\"1dd2536a-8927-4b80-92a8-93a0f6070793\",\"type\":\"Rect\"},{\"attributes\":{\"callback\":null,\"column_names\":[\"line_color\",\"line_alpha\",\"color\",\"fill_alpha\",\"height\",\"width\",\"y\",\"x\"],\"data\":{\"chart_index\":[{\"countries\":\"Gabon\"}],\"color\":[\"#3B6849\"],\"countries\":[\"Gabon\"],\"fill_alpha\":[0.8],\"height\":[4.0],\"line_alpha\":[1.0],\"line_color\":[\"white\"],\"width\":[0.8],\"x\":[\"Gabon\"],\"y\":[2.0]}},\"id\":\"9f00bdc3-dc23-4955-86b2-5c52a5e10473\",\"type\":\"ColumnDataSource\"},{\"attributes\":{\"data_source\":{\"id\":\"a2767706-f38b-4857-ab51-4d74d9d65df5\",\"type\":\"ColumnDataSource\"},\"glyph\":{\"id\":\"3c8f74bd-266c-4356-b31f-c53e5a721865\",\"type\":\"Rect\"},\"hover_glyph\":null,\"nonselection_glyph\":null,\"selection_glyph\":null},\"id\":\"3ebbd078-98bc-499c-861a-b890676bc38e\",\"type\":\"GlyphRenderer\"},{\"attributes\":{\"data_source\":{\"id\":\"c0ce98e7-9cd5-458f-8ad8-cdacbcec3aa6\",\"type\":\"ColumnDataSource\"},\"glyph\":{\"id\":\"c912ec38-4e23-45bb-bc50-f7e58fa02b5a\",\"type\":\"Rect\"},\"hover_glyph\":null,\"nonselection_glyph\":null,\"selection_glyph\":null},\"id\":\"c1cc21e7-4512-4e79-a19f-fb63c23cfa80\",\"type\":\"GlyphRenderer\"},{\"attributes\":{\"callback\":null,\"factors\":[\"Cote d'Ivoire (Ivory Coast)\",\"Democratic Republic of the Congo\",\"England\",\"Gabon\",\"Italy\",\"Philippines\",\"Russia\",\"South Africa\",\"Sudan (South Sudan)\",\"USA\",\"Uganda\"]},\"id\":\"b28edf6a-2dcd-40e1-845b-72bfb3914d38\",\"type\":\"FactorRange\"},{\"attributes\":{\"callback\":null,\"column_names\":[\"line_color\",\"line_alpha\",\"color\",\"fill_alpha\",\"height\",\"width\",\"y\",\"x\"],\"data\":{\"chart_index\":[{\"countries\":\"South Africa\"}],\"color\":[\"#586996\"],\"countries\":[\"South Africa\"],\"fill_alpha\":[0.8],\"height\":[365.0],\"line_alpha\":[1.0],\"line_color\":[\"white\"],\"width\":[0.8],\"x\":[\"South Africa\"],\"y\":[182.5]}},\"id\":\"a2767706-f38b-4857-ab51-4d74d9d65df5\",\"type\":\"ColumnDataSource\"},{\"attributes\":{\"axis_label\":\"Sum( Ebola Outbreaks )\",\"formatter\":{\"id\":\"ae440f71-8605-42f6-926c-a783f80131fe\",\"type\":\"BasicTickFormatter\"},\"plot\":{\"id\":\"94a2836b-f34a-41f1-a6dc-b664a876ec4f\",\"subtype\":\"Chart\",\"type\":\"Plot\"},\"ticker\":{\"id\":\"00737aad-62a4-462f-9ac8-b3f419419097\",\"type\":\"BasicTicker\"}},\"id\":\"fc909c9b-541c-468d-950c-e30c937186d7\",\"type\":\"LinearAxis\"},{\"attributes\":{\"below\":[{\"id\":\"8a7052cb-d2c9-4f82-9d9f-84eb9ca62642\",\"type\":\"CategoricalAxis\"}],\"left\":[{\"id\":\"6e844736-322a-4083-95cb-96af1807f6b3\",\"type\":\"LinearAxis\"}],\"legend\":null,\"plot_height\":500,\"renderers\":[{\"id\":\"c9e53a22-0486-4f0d-be31-632a6aba435e\",\"type\":\"BoxAnnotation\"},{\"id\":\"1dbc182d-a5ea-4ee2-b333-1ec4fa1fbe9e\",\"type\":\"GlyphRenderer\"},{\"id\":\"90c1020a-38bc-4749-8207-106ac6c98db1\",\"type\":\"GlyphRenderer\"},{\"id\":\"76b8317f-2d15-43f9-9914-7aa124bb7cdb\",\"type\":\"GlyphRenderer\"},{\"id\":\"0224c2e3-59d8-4010-92b8-ea416c1a7f9e\",\"type\":\"GlyphRenderer\"},{\"id\":\"f9bbb3ae-5c60-43be-a46c-b3b8cc66f7f6\",\"type\":\"GlyphRenderer\"},{\"id\":\"ef770858-c8da-485e-b8d2-59b6db34ae98\",\"type\":\"GlyphRenderer\"},{\"id\":\"c1cc21e7-4512-4e79-a19f-fb63c23cfa80\",\"type\":\"GlyphRenderer\"},{\"id\":\"3ebbd078-98bc-499c-861a-b890676bc38e\",\"type\":\"GlyphRenderer\"},{\"id\":\"e7f282fd-405d-4a46-aa4e-d27a3bc4d23e\",\"type\":\"GlyphRenderer\"},{\"id\":\"21ce9503-6d4c-4f5e-857b-cb8f6e598222\",\"type\":\"GlyphRenderer\"},{\"id\":\"337a032d-fd5b-4d8a-9bc3-395b7fc9a725\",\"type\":\"GlyphRenderer\"},{\"id\":\"8a7052cb-d2c9-4f82-9d9f-84eb9ca62642\",\"type\":\"CategoricalAxis\"},{\"id\":\"6e844736-322a-4083-95cb-96af1807f6b3\",\"type\":\"LinearAxis\"},{\"id\":\"69681d42-20d4-459a-b915-d0cbe5d31d2b\",\"type\":\"Grid\"}],\"title\":\"Durations of ebola outbreaks (days) per country\",\"title_text_font_size\":{\"value\":\"14pt\"},\"tool_events\":{\"id\":\"f3873f84-3403-4b21-9751-ccc509a552cb\",\"type\":\"ToolEvents\"},\"tools\":[{\"id\":\"5c719c10-7a84-4649-89c9-ba32b40fecbe\",\"type\":\"PanTool\"},{\"id\":\"c5144f72-b978-4017-989e-72517066218c\",\"type\":\"WheelZoomTool\"},{\"id\":\"490c1bd2-b218-4722-8fba-b936a56b9d90\",\"type\":\"BoxZoomTool\"},{\"id\":\"33a5d6fa-4a26-48ff-ad44-37ed80b927a7\",\"type\":\"PreviewSaveTool\"},{\"id\":\"a10ad6a2-d074-44c0-bce3-ffad0720e80b\",\"type\":\"ResizeTool\"},{\"id\":\"0be69570-c3b4-464e-8ecf-628b31845c55\",\"type\":\"ResetTool\"},{\"id\":\"392d3fd5-8ebb-45a6-b54d-d5dabb6833bf\",\"type\":\"HelpTool\"}],\"x_mapper_type\":\"auto\",\"x_range\":{\"id\":\"d16f42b1-e5c9-4790-8ee4-356b258cf228\",\"type\":\"FactorRange\"},\"xgrid\":false,\"xscale\":\"auto\",\"y_mapper_type\":\"auto\",\"y_range\":{\"id\":\"f06414f6-ba98-4cff-952e-694a545f9f72\",\"type\":\"Range1d\"},\"yscale\":\"auto\"},\"id\":\"5ddd1913-0a0f-470f-a1a2-5904622f9c57\",\"subtype\":\"Chart\",\"type\":\"Plot\"},{\"attributes\":{\"data_source\":{\"id\":\"71c67479-88bb-402a-b6eb-c1008782daac\",\"type\":\"ColumnDataSource\"},\"glyph\":{\"id\":\"0d93c621-6d14-44c2-8cca-28d0700ca55f\",\"type\":\"Rect\"},\"hover_glyph\":null,\"nonselection_glyph\":null,\"selection_glyph\":null},\"id\":\"a9a92daa-3482-400d-8241-bbcde4a01c6c\",\"type\":\"GlyphRenderer\"},{\"attributes\":{\"dimension\":1,\"plot\":{\"id\":\"5ddd1913-0a0f-470f-a1a2-5904622f9c57\",\"subtype\":\"Chart\",\"type\":\"Plot\"},\"ticker\":{\"id\":\"914bdef8-43c2-4946-81c3-c571676d1e46\",\"type\":\"BasicTicker\"}},\"id\":\"69681d42-20d4-459a-b915-d0cbe5d31d2b\",\"type\":\"Grid\"},{\"attributes\":{\"data_source\":{\"id\":\"8281a772-6da8-4ef7-947a-02804f1021c5\",\"type\":\"ColumnDataSource\"},\"glyph\":{\"id\":\"10702506-6d73-48f5-b9be-74c95576d7e3\",\"type\":\"Rect\"},\"hover_glyph\":null,\"nonselection_glyph\":null,\"selection_glyph\":null},\"id\":\"189acff1-88c6-4736-8da6-b53e9e1c24a5\",\"type\":\"GlyphRenderer\"},{\"attributes\":{\"callback\":null,\"column_names\":[\"line_color\",\"line_alpha\",\"color\",\"fill_alpha\",\"height\",\"width\",\"y\",\"x\"],\"data\":{\"chart_index\":[{\"countries\":\"Democratic Republic of the Congo\"}],\"color\":[\"#3B6849\"],\"countries\":[\"Democratic Republic of the Congo\"],\"fill_alpha\":[0.8],\"height\":[9.0],\"line_alpha\":[1.0],\"line_color\":[\"white\"],\"width\":[0.8],\"x\":[\"Democratic Republic of the Congo\"],\"y\":[4.5]}},\"id\":\"8281a772-6da8-4ef7-947a-02804f1021c5\",\"type\":\"ColumnDataSource\"},{\"attributes\":{\"callback\":null,\"column_names\":[\"line_color\",\"line_alpha\",\"color\",\"fill_alpha\",\"height\",\"width\",\"y\",\"x\"],\"data\":{\"chart_index\":[{\"countries\":\"Russia\"}],\"color\":[\"#586996\"],\"countries\":[\"Russia\"],\"fill_alpha\":[0.8],\"height\":[365.0],\"line_alpha\":[1.0],\"line_color\":[\"white\"],\"width\":[0.8],\"x\":[\"Russia\"],\"y\":[182.5]}},\"id\":\"c16559a9-ac75-4375-9dbc-eba8708f4431\",\"type\":\"ColumnDataSource\"},{\"attributes\":{\"fill_alpha\":{\"field\":\"fill_alpha\"},\"fill_color\":{\"field\":\"color\"},\"height\":{\"field\":\"height\",\"units\":\"data\"},\"line_color\":{\"field\":\"line_color\"},\"width\":{\"field\":\"width\",\"units\":\"data\"},\"x\":{\"field\":\"x\"},\"y\":{\"field\":\"y\"}},\"id\":\"5ffbe628-fd26-4a7e-8804-c926acf40a4d\",\"type\":\"Rect\"},{\"attributes\":{},\"id\":\"b97d5886-7f0b-4453-9dac-a8a082f7081b\",\"type\":\"CategoricalTickFormatter\"},{\"attributes\":{\"callback\":null,\"column_names\":[\"line_color\",\"line_alpha\",\"color\",\"fill_alpha\",\"height\",\"width\",\"y\",\"x\"],\"data\":{\"chart_index\":[{\"countries\":\"England\"}],\"color\":[\"#3B6849\"],\"countries\":[\"England\"],\"fill_alpha\":[0.8],\"height\":[1.0],\"line_alpha\":[1.0],\"line_color\":[\"white\"],\"width\":[0.8],\"x\":[\"England\"],\"y\":[0.5]}},\"id\":\"00ac7d2e-aac4-425b-90af-0bfecc33d18d\",\"type\":\"ColumnDataSource\"},{\"attributes\":{\"fill_alpha\":{\"field\":\"fill_alpha\"},\"fill_color\":{\"field\":\"color\"},\"height\":{\"field\":\"height\",\"units\":\"data\"},\"line_color\":{\"field\":\"line_color\"},\"width\":{\"field\":\"width\",\"units\":\"data\"},\"x\":{\"field\":\"x\"},\"y\":{\"field\":\"y\"}},\"id\":\"0e1953f1-8800-4a92-9564-d222e792dbd6\",\"type\":\"Rect\"},{\"attributes\":{},\"id\":\"183b7899-15a1-48d4-a206-890b11a2bfc4\",\"type\":\"CategoricalTicker\"},{\"attributes\":{\"callback\":null,\"end\":383.25},\"id\":\"f06414f6-ba98-4cff-952e-694a545f9f72\",\"type\":\"Range1d\"},{\"attributes\":{\"fill_alpha\":{\"field\":\"fill_alpha\"},\"fill_color\":{\"field\":\"color\"},\"height\":{\"field\":\"height\",\"units\":\"data\"},\"line_color\":{\"field\":\"line_color\"},\"width\":{\"field\":\"width\",\"units\":\"data\"},\"x\":{\"field\":\"x\"},\"y\":{\"field\":\"y\"}},\"id\":\"10702506-6d73-48f5-b9be-74c95576d7e3\",\"type\":\"Rect\"},{\"attributes\":{\"callback\":null,\"column_names\":[\"line_color\",\"line_alpha\",\"color\",\"fill_alpha\",\"height\",\"width\",\"y\",\"x\"],\"data\":{\"chart_index\":[{\"countries\":\"Philippines\"}],\"color\":[\"#586996\"],\"countries\":[\"Philippines\"],\"fill_alpha\":[0.8],\"height\":[364.6666666666667],\"line_alpha\":[1.0],\"line_color\":[\"white\"],\"width\":[0.8],\"x\":[\"Philippines\"],\"y\":[182.33333333333334]}},\"id\":\"6fa19458-f5f4-4707-8c0e-7c05abb20710\",\"type\":\"ColumnDataSource\"},{\"attributes\":{\"data_source\":{\"id\":\"9f00bdc3-dc23-4955-86b2-5c52a5e10473\",\"type\":\"ColumnDataSource\"},\"glyph\":{\"id\":\"f9b5f227-e840-4706-bcd9-b38de46ada58\",\"type\":\"Rect\"},\"hover_glyph\":null,\"nonselection_glyph\":null,\"selection_glyph\":null},\"id\":\"e0a7703c-37e2-46b8-a2c0-b8096a17ef4f\",\"type\":\"GlyphRenderer\"},{\"attributes\":{\"plot\":{\"id\":\"5ddd1913-0a0f-470f-a1a2-5904622f9c57\",\"subtype\":\"Chart\",\"type\":\"Plot\"}},\"id\":\"5c719c10-7a84-4649-89c9-ba32b40fecbe\",\"type\":\"PanTool\"},{\"attributes\":{\"plot\":{\"id\":\"94a2836b-f34a-41f1-a6dc-b664a876ec4f\",\"subtype\":\"Chart\",\"type\":\"Plot\"}},\"id\":\"78ef6bf9-a63d-461e-a1b1-83af0b48333b\",\"type\":\"ResizeTool\"},{\"attributes\":{},\"id\":\"fa5aacc5-6445-4f5c-b06c-c9d80f78384c\",\"type\":\"ToolEvents\"},{\"attributes\":{\"data_source\":{\"id\":\"ebf07938-d42a-4039-a501-ee3192a1c854\",\"type\":\"ColumnDataSource\"},\"glyph\":{\"id\":\"0905d67a-d776-4a36-aa07-4df48ef01119\",\"type\":\"Rect\"},\"hover_glyph\":null,\"nonselection_glyph\":null,\"selection_glyph\":null},\"id\":\"15ed60de-7f08-484d-b8d9-9a75d0db516b\",\"type\":\"GlyphRenderer\"},{\"attributes\":{\"callback\":null,\"column_names\":[\"line_color\",\"line_alpha\",\"color\",\"fill_alpha\",\"height\",\"width\",\"y\",\"x\"],\"data\":{\"chart_index\":[{\"countries\":\"Italy\"}],\"color\":[\"#586996\"],\"countries\":[\"Italy\"],\"fill_alpha\":[0.8],\"height\":[365.0],\"line_alpha\":[1.0],\"line_color\":[\"white\"],\"width\":[0.8],\"x\":[\"Italy\"],\"y\":[182.5]}},\"id\":\"c0ce98e7-9cd5-458f-8ad8-cdacbcec3aa6\",\"type\":\"ColumnDataSource\"},{\"attributes\":{\"fill_alpha\":{\"field\":\"fill_alpha\"},\"fill_color\":{\"field\":\"color\"},\"height\":{\"field\":\"height\",\"units\":\"data\"},\"line_color\":{\"field\":\"line_color\"},\"width\":{\"field\":\"width\",\"units\":\"data\"},\"x\":{\"field\":\"x\"},\"y\":{\"field\":\"y\"}},\"id\":\"eb07364e-c0e9-419d-9e54-faef2bee5305\",\"type\":\"Rect\"},{\"attributes\":{\"overlay\":{\"id\":\"862bec32-99e6-4c9e-b90e-ca4a7092a977\",\"type\":\"BoxAnnotation\"},\"plot\":{\"id\":\"94a2836b-f34a-41f1-a6dc-b664a876ec4f\",\"subtype\":\"Chart\",\"type\":\"Plot\"}},\"id\":\"88ef33ff-ebd0-4a3a-9857-9f24a0f30407\",\"type\":\"BoxZoomTool\"},{\"attributes\":{},\"id\":\"3553e192-9000-4c2f-b3ca-261f1f3dddd3\",\"type\":\"BasicTickFormatter\"},{\"attributes\":{\"data_source\":{\"id\":\"2a91a5e5-420d-400e-a5e6-3ee8676e8fab\",\"type\":\"ColumnDataSource\"},\"glyph\":{\"id\":\"0e1953f1-8800-4a92-9564-d222e792dbd6\",\"type\":\"Rect\"},\"hover_glyph\":null,\"nonselection_glyph\":null,\"selection_glyph\":null},\"id\":\"337a032d-fd5b-4d8a-9bc3-395b7fc9a725\",\"type\":\"GlyphRenderer\"},{\"attributes\":{\"data_source\":{\"id\":\"251b63cb-1d7c-47d4-b743-fe0b7931d945\",\"type\":\"ColumnDataSource\"},\"glyph\":{\"id\":\"17755ee5-062b-49b0-ad3e-992bacac18df\",\"type\":\"Rect\"},\"hover_glyph\":null,\"nonselection_glyph\":null,\"selection_glyph\":null},\"id\":\"369a43b9-a3c0-42ac-a820-cdf089abf4b4\",\"type\":\"GlyphRenderer\"},{\"attributes\":{},\"id\":\"914bdef8-43c2-4946-81c3-c571676d1e46\",\"type\":\"BasicTicker\"},{\"attributes\":{\"data_source\":{\"id\":\"e26a1455-d06a-43ec-9f11-81e724d6da72\",\"type\":\"ColumnDataSource\"},\"glyph\":{\"id\":\"a292e029-d7aa-4cfb-97f5-02bbf6cee6af\",\"type\":\"Rect\"},\"hover_glyph\":null,\"nonselection_glyph\":null,\"selection_glyph\":null},\"id\":\"8194ddca-8c06-4c6b-a742-bc11b053c2a8\",\"type\":\"GlyphRenderer\"},{\"attributes\":{},\"id\":\"00737aad-62a4-462f-9ac8-b3f419419097\",\"type\":\"BasicTicker\"},{\"attributes\":{\"callback\":null,\"column_names\":[\"line_color\",\"line_alpha\",\"color\",\"fill_alpha\",\"height\",\"width\",\"y\",\"x\"],\"data\":{\"chart_index\":[{\"countries\":\"Russia\"}],\"color\":[\"#3B6849\"],\"countries\":[\"Russia\"],\"fill_alpha\":[0.8],\"height\":[2.0],\"line_alpha\":[1.0],\"line_color\":[\"white\"],\"width\":[0.8],\"x\":[\"Russia\"],\"y\":[1.0]}},\"id\":\"ced77ae8-0501-4762-91f0-5d92ae8947a3\",\"type\":\"ColumnDataSource\"},{\"attributes\":{\"callback\":null,\"column_names\":[\"line_color\",\"line_alpha\",\"color\",\"fill_alpha\",\"height\",\"width\",\"y\",\"x\"],\"data\":{\"chart_index\":[{\"countries\":\"South Africa\"}],\"color\":[\"#3B6849\"],\"countries\":[\"South Africa\"],\"fill_alpha\":[0.8],\"height\":[1.0],\"line_alpha\":[1.0],\"line_color\":[\"white\"],\"width\":[0.8],\"x\":[\"South Africa\"],\"y\":[0.5]}},\"id\":\"c69ba7a8-c441-4755-9c95-d2e1f16b8e43\",\"type\":\"ColumnDataSource\"},{\"attributes\":{\"callback\":null,\"column_names\":[\"line_color\",\"line_alpha\",\"color\",\"fill_alpha\",\"height\",\"width\",\"y\",\"x\"],\"data\":{\"chart_index\":[{\"countries\":\"Gabon\"}],\"color\":[\"#586996\"],\"countries\":[\"Gabon\"],\"fill_alpha\":[0.8],\"height\":[219.75],\"line_alpha\":[1.0],\"line_color\":[\"white\"],\"width\":[0.8],\"x\":[\"Gabon\"],\"y\":[109.875]}},\"id\":\"ba5aa1bf-79ba-4b89-8658-84a2ae9b549d\",\"type\":\"ColumnDataSource\"},{\"attributes\":{\"data_source\":{\"id\":\"c16559a9-ac75-4375-9dbc-eba8708f4431\",\"type\":\"ColumnDataSource\"},\"glyph\":{\"id\":\"1dd2536a-8927-4b80-92a8-93a0f6070793\",\"type\":\"Rect\"},\"hover_glyph\":null,\"nonselection_glyph\":null,\"selection_glyph\":null},\"id\":\"1dbc182d-a5ea-4ee2-b333-1ec4fa1fbe9e\",\"type\":\"GlyphRenderer\"},{\"attributes\":{},\"id\":\"f3873f84-3403-4b21-9751-ccc509a552cb\",\"type\":\"ToolEvents\"},{\"attributes\":{\"data_source\":{\"id\":\"6fa19458-f5f4-4707-8c0e-7c05abb20710\",\"type\":\"ColumnDataSource\"},\"glyph\":{\"id\":\"dcd56dc6-ea20-489f-b487-75473f9c373d\",\"type\":\"Rect\"},\"hover_glyph\":null,\"nonselection_glyph\":null,\"selection_glyph\":null},\"id\":\"90c1020a-38bc-4749-8207-106ac6c98db1\",\"type\":\"GlyphRenderer\"},{\"attributes\":{\"bottom_units\":\"screen\",\"fill_alpha\":{\"value\":0.5},\"fill_color\":{\"value\":\"lightgrey\"},\"left_units\":\"screen\",\"level\":\"overlay\",\"line_alpha\":{\"value\":1.0},\"line_color\":{\"value\":\"black\"},\"line_dash\":[4,4],\"line_width\":{\"value\":2},\"plot\":null,\"render_mode\":\"css\",\"right_units\":\"screen\",\"top_units\":\"screen\"},\"id\":\"862bec32-99e6-4c9e-b90e-ca4a7092a977\",\"type\":\"BoxAnnotation\"},{\"attributes\":{\"data_source\":{\"id\":\"00ac7d2e-aac4-425b-90af-0bfecc33d18d\",\"type\":\"ColumnDataSource\"},\"glyph\":{\"id\":\"d2bb27ae-dc54-4451-86fe-aa387c9786f2\",\"type\":\"Rect\"},\"hover_glyph\":null,\"nonselection_glyph\":null,\"selection_glyph\":null},\"id\":\"05306f69-d819-4f54-b1d1-29c8dc6ba176\",\"type\":\"GlyphRenderer\"},{\"attributes\":{\"axis_label\":\"Countries\",\"formatter\":{\"id\":\"b97d5886-7f0b-4453-9dac-a8a082f7081b\",\"type\":\"CategoricalTickFormatter\"},\"major_label_orientation\":0.7853981633974483,\"plot\":{\"id\":\"5ddd1913-0a0f-470f-a1a2-5904622f9c57\",\"subtype\":\"Chart\",\"type\":\"Plot\"},\"ticker\":{\"id\":\"183b7899-15a1-48d4-a206-890b11a2bfc4\",\"type\":\"CategoricalTicker\"}},\"id\":\"8a7052cb-d2c9-4f82-9d9f-84eb9ca62642\",\"type\":\"CategoricalAxis\"},{\"attributes\":{\"axis_label\":\"Mean( Outbreaks Duration )\",\"formatter\":{\"id\":\"3553e192-9000-4c2f-b3ca-261f1f3dddd3\",\"type\":\"BasicTickFormatter\"},\"plot\":{\"id\":\"5ddd1913-0a0f-470f-a1a2-5904622f9c57\",\"subtype\":\"Chart\",\"type\":\"Plot\"},\"ticker\":{\"id\":\"914bdef8-43c2-4946-81c3-c571676d1e46\",\"type\":\"BasicTicker\"}},\"id\":\"6e844736-322a-4083-95cb-96af1807f6b3\",\"type\":\"LinearAxis\"},{\"attributes\":{\"callback\":null,\"column_names\":[\"line_color\",\"line_alpha\",\"color\",\"fill_alpha\",\"height\",\"width\",\"y\",\"x\"],\"data\":{\"chart_index\":[{\"countries\":\"Cote d'Ivoire (Ivory Coast)\"}],\"color\":[\"#3B6849\"],\"countries\":[\"Cote d'Ivoire (Ivory Coast)\"],\"fill_alpha\":[0.8],\"height\":[1.0],\"line_alpha\":[1.0],\"line_color\":[\"white\"],\"width\":[0.8],\"x\":[\"Cote d'Ivoire (Ivory Coast)\"],\"y\":[0.5]}},\"id\":\"34a48dc3-4528-41d9-ad23-8363c07a04ec\",\"type\":\"ColumnDataSource\"},{\"attributes\":{\"plot\":{\"id\":\"5ddd1913-0a0f-470f-a1a2-5904622f9c57\",\"subtype\":\"Chart\",\"type\":\"Plot\"}},\"id\":\"392d3fd5-8ebb-45a6-b54d-d5dabb6833bf\",\"type\":\"HelpTool\"},{\"attributes\":{\"fill_alpha\":{\"field\":\"fill_alpha\"},\"fill_color\":{\"field\":\"color\"},\"height\":{\"field\":\"height\",\"units\":\"data\"},\"line_color\":{\"field\":\"line_color\"},\"width\":{\"field\":\"width\",\"units\":\"data\"},\"x\":{\"field\":\"x\"},\"y\":{\"field\":\"y\"}},\"id\":\"f9b5f227-e840-4706-bcd9-b38de46ada58\",\"type\":\"Rect\"},{\"attributes\":{\"data_source\":{\"id\":\"ef8a8dba-166a-4523-92d4-32ca4a81b26f\",\"type\":\"ColumnDataSource\"},\"glyph\":{\"id\":\"c76bea58-201c-4595-8fda-31bc46272e56\",\"type\":\"Rect\"},\"hover_glyph\":null,\"nonselection_glyph\":null,\"selection_glyph\":null},\"id\":\"e7f282fd-405d-4a46-aa4e-d27a3bc4d23e\",\"type\":\"GlyphRenderer\"},{\"attributes\":{\"fill_alpha\":{\"field\":\"fill_alpha\"},\"fill_color\":{\"field\":\"color\"},\"height\":{\"field\":\"height\",\"units\":\"data\"},\"line_color\":{\"field\":\"line_color\"},\"width\":{\"field\":\"width\",\"units\":\"data\"},\"x\":{\"field\":\"x\"},\"y\":{\"field\":\"y\"}},\"id\":\"74c3c9dc-39c4-4065-bd85-9d7ac3ba7b9b\",\"type\":\"Rect\"},{\"attributes\":{\"fill_alpha\":{\"field\":\"fill_alpha\"},\"fill_color\":{\"field\":\"color\"},\"height\":{\"field\":\"height\",\"units\":\"data\"},\"line_color\":{\"field\":\"line_color\"},\"width\":{\"field\":\"width\",\"units\":\"data\"},\"x\":{\"field\":\"x\"},\"y\":{\"field\":\"y\"}},\"id\":\"c912ec38-4e23-45bb-bc50-f7e58fa02b5a\",\"type\":\"Rect\"},{\"attributes\":{\"callback\":null,\"column_names\":[\"line_color\",\"line_alpha\",\"color\",\"fill_alpha\",\"height\",\"width\",\"y\",\"x\"],\"data\":{\"chart_index\":[{\"countries\":\"Philippines\"}],\"color\":[\"#3B6849\"],\"countries\":[\"Philippines\"],\"fill_alpha\":[0.8],\"height\":[3.0],\"line_alpha\":[1.0],\"line_color\":[\"white\"],\"width\":[0.8],\"x\":[\"Philippines\"],\"y\":[1.5]}},\"id\":\"ebf07938-d42a-4039-a501-ee3192a1c854\",\"type\":\"ColumnDataSource\"},{\"attributes\":{\"data_source\":{\"id\":\"32712fa8-4d0c-4191-8abc-747a1afc3d33\",\"type\":\"ColumnDataSource\"},\"glyph\":{\"id\":\"b03abb8a-51d6-460a-9d36-f239e4122a7c\",\"type\":\"Rect\"},\"hover_glyph\":null,\"nonselection_glyph\":null,\"selection_glyph\":null},\"id\":\"f9bbb3ae-5c60-43be-a46c-b3b8cc66f7f6\",\"type\":\"GlyphRenderer\"},{\"attributes\":{\"data_source\":{\"id\":\"d2bf3ebe-f0ac-42ef-860d-9161af3a4d86\",\"type\":\"ColumnDataSource\"},\"glyph\":{\"id\":\"501a4f98-0f4d-4e75-9863-e1f4f897c4ad\",\"type\":\"Rect\"},\"hover_glyph\":null,\"nonselection_glyph\":null,\"selection_glyph\":null},\"id\":\"ef770858-c8da-485e-b8d2-59b6db34ae98\",\"type\":\"GlyphRenderer\"},{\"attributes\":{\"fill_alpha\":{\"field\":\"fill_alpha\"},\"fill_color\":{\"field\":\"color\"},\"height\":{\"field\":\"height\",\"units\":\"data\"},\"line_color\":{\"field\":\"line_color\"},\"width\":{\"field\":\"width\",\"units\":\"data\"},\"x\":{\"field\":\"x\"},\"y\":{\"field\":\"y\"}},\"id\":\"0905d67a-d776-4a36-aa07-4df48ef01119\",\"type\":\"Rect\"},{\"attributes\":{\"callback\":null,\"column_names\":[\"line_color\",\"line_alpha\",\"color\",\"fill_alpha\",\"height\",\"width\",\"y\",\"x\"],\"data\":{\"chart_index\":[{\"countries\":\"Sudan (South Sudan)\"}],\"color\":[\"#3B6849\"],\"countries\":[\"Sudan (South Sudan)\"],\"fill_alpha\":[0.8],\"height\":[3.0],\"line_alpha\":[1.0],\"line_color\":[\"white\"],\"width\":[0.8],\"x\":[\"Sudan (South Sudan)\"],\"y\":[1.5]}},\"id\":\"e26a1455-d06a-43ec-9f11-81e724d6da72\",\"type\":\"ColumnDataSource\"},{\"attributes\":{\"plot\":{\"id\":\"5ddd1913-0a0f-470f-a1a2-5904622f9c57\",\"subtype\":\"Chart\",\"type\":\"Plot\"}},\"id\":\"a10ad6a2-d074-44c0-bce3-ffad0720e80b\",\"type\":\"ResizeTool\"},{\"attributes\":{\"callback\":null,\"column_names\":[\"line_color\",\"line_alpha\",\"color\",\"fill_alpha\",\"height\",\"width\",\"y\",\"x\"],\"data\":{\"chart_index\":[{\"countries\":\"USA\"}],\"color\":[\"#3B6849\"],\"countries\":[\"USA\"],\"fill_alpha\":[0.8],\"height\":[3.0],\"line_alpha\":[1.0],\"line_color\":[\"white\"],\"width\":[0.8],\"x\":[\"USA\"],\"y\":[1.5]}},\"id\":\"251b63cb-1d7c-47d4-b743-fe0b7931d945\",\"type\":\"ColumnDataSource\"},{\"attributes\":{\"fill_alpha\":{\"field\":\"fill_alpha\"},\"fill_color\":{\"field\":\"color\"},\"height\":{\"field\":\"height\",\"units\":\"data\"},\"line_color\":{\"field\":\"line_color\"},\"width\":{\"field\":\"width\",\"units\":\"data\"},\"x\":{\"field\":\"x\"},\"y\":{\"field\":\"y\"}},\"id\":\"501a4f98-0f4d-4e75-9863-e1f4f897c4ad\",\"type\":\"Rect\"},{\"attributes\":{\"data_source\":{\"id\":\"ced77ae8-0501-4762-91f0-5d92ae8947a3\",\"type\":\"ColumnDataSource\"},\"glyph\":{\"id\":\"74c3c9dc-39c4-4065-bd85-9d7ac3ba7b9b\",\"type\":\"Rect\"},\"hover_glyph\":null,\"nonselection_glyph\":null,\"selection_glyph\":null},\"id\":\"24f712cc-26b1-4f89-86d2-b4df1492bdc9\",\"type\":\"GlyphRenderer\"},{\"attributes\":{\"callback\":null,\"column_names\":[\"line_color\",\"line_alpha\",\"color\",\"fill_alpha\",\"height\",\"width\",\"y\",\"x\"],\"data\":{\"chart_index\":[{\"countries\":\"England\"}],\"color\":[\"#586996\"],\"countries\":[\"England\"],\"fill_alpha\":[0.8],\"height\":[365.0],\"line_alpha\":[1.0],\"line_color\":[\"white\"],\"width\":[0.8],\"x\":[\"England\"],\"y\":[182.5]}},\"id\":\"2a91a5e5-420d-400e-a5e6-3ee8676e8fab\",\"type\":\"ColumnDataSource\"},{\"attributes\":{\"data_source\":{\"id\":\"34a48dc3-4528-41d9-ad23-8363c07a04ec\",\"type\":\"ColumnDataSource\"},\"glyph\":{\"id\":\"64485527-2d97-427d-ab79-f23fd0fe83e1\",\"type\":\"Rect\"},\"hover_glyph\":null,\"nonselection_glyph\":null,\"selection_glyph\":null},\"id\":\"62887af1-7bb6-4e87-8fa9-89131221cda2\",\"type\":\"GlyphRenderer\"},{\"attributes\":{\"callback\":null,\"column_names\":[\"line_color\",\"line_alpha\",\"color\",\"fill_alpha\",\"height\",\"width\",\"y\",\"x\"],\"data\":{\"chart_index\":[{\"countries\":\"Sudan (South Sudan)\"}],\"color\":[\"#586996\"],\"countries\":[\"Sudan (South Sudan)\"],\"fill_alpha\":[0.8],\"height\":[364.6666666666667],\"line_alpha\":[1.0],\"line_color\":[\"white\"],\"width\":[0.8],\"x\":[\"Sudan (South Sudan)\"],\"y\":[182.33333333333334]}},\"id\":\"ef8a8dba-166a-4523-92d4-32ca4a81b26f\",\"type\":\"ColumnDataSource\"},{\"attributes\":{\"fill_alpha\":{\"field\":\"fill_alpha\"},\"fill_color\":{\"field\":\"color\"},\"height\":{\"field\":\"height\",\"units\":\"data\"},\"line_color\":{\"field\":\"line_color\"},\"width\":{\"field\":\"width\",\"units\":\"data\"},\"x\":{\"field\":\"x\"},\"y\":{\"field\":\"y\"}},\"id\":\"c76bea58-201c-4595-8fda-31bc46272e56\",\"type\":\"Rect\"},{\"attributes\":{\"fill_alpha\":{\"field\":\"fill_alpha\"},\"fill_color\":{\"field\":\"color\"},\"height\":{\"field\":\"height\",\"units\":\"data\"},\"line_color\":{\"field\":\"line_color\"},\"width\":{\"field\":\"width\",\"units\":\"data\"},\"x\":{\"field\":\"x\"},\"y\":{\"field\":\"y\"}},\"id\":\"a292e029-d7aa-4cfb-97f5-02bbf6cee6af\",\"type\":\"Rect\"},{\"attributes\":{\"plot\":{\"id\":\"5ddd1913-0a0f-470f-a1a2-5904622f9c57\",\"subtype\":\"Chart\",\"type\":\"Plot\"}},\"id\":\"33a5d6fa-4a26-48ff-ad44-37ed80b927a7\",\"type\":\"PreviewSaveTool\"},{\"attributes\":{\"data_source\":{\"id\":\"c69ba7a8-c441-4755-9c95-d2e1f16b8e43\",\"type\":\"ColumnDataSource\"},\"glyph\":{\"id\":\"e05387f6-00ac-40d3-926d-4d35bcdaa831\",\"type\":\"Rect\"},\"hover_glyph\":null,\"nonselection_glyph\":null,\"selection_glyph\":null},\"id\":\"fcfef1ee-912c-4e3d-97de-d0941838984c\",\"type\":\"GlyphRenderer\"},{\"attributes\":{\"fill_alpha\":{\"field\":\"fill_alpha\"},\"fill_color\":{\"field\":\"color\"},\"height\":{\"field\":\"height\",\"units\":\"data\"},\"line_color\":{\"field\":\"line_color\"},\"width\":{\"field\":\"width\",\"units\":\"data\"},\"x\":{\"field\":\"x\"},\"y\":{\"field\":\"y\"}},\"id\":\"e05387f6-00ac-40d3-926d-4d35bcdaa831\",\"type\":\"Rect\"},{\"attributes\":{\"fill_alpha\":{\"field\":\"fill_alpha\"},\"fill_color\":{\"field\":\"color\"},\"height\":{\"field\":\"height\",\"units\":\"data\"},\"line_color\":{\"field\":\"line_color\"},\"width\":{\"field\":\"width\",\"units\":\"data\"},\"x\":{\"field\":\"x\"},\"y\":{\"field\":\"y\"}},\"id\":\"dcd56dc6-ea20-489f-b487-75473f9c373d\",\"type\":\"Rect\"},{\"attributes\":{\"plot\":{\"id\":\"94a2836b-f34a-41f1-a6dc-b664a876ec4f\",\"subtype\":\"Chart\",\"type\":\"Plot\"}},\"id\":\"ea011a8d-8e2f-40c2-97e0-d17a3d414d00\",\"type\":\"PreviewSaveTool\"},{\"attributes\":{\"fill_alpha\":{\"field\":\"fill_alpha\"},\"fill_color\":{\"field\":\"color\"},\"height\":{\"field\":\"height\",\"units\":\"data\"},\"line_color\":{\"field\":\"line_color\"},\"width\":{\"field\":\"width\",\"units\":\"data\"},\"x\":{\"field\":\"x\"},\"y\":{\"field\":\"y\"}},\"id\":\"b03abb8a-51d6-460a-9d36-f239e4122a7c\",\"type\":\"Rect\"},{\"attributes\":{},\"id\":\"3fdee970-c1b8-4889-9185-40f45be00d50\",\"type\":\"CategoricalTicker\"},{\"attributes\":{\"plot\":{\"id\":\"94a2836b-f34a-41f1-a6dc-b664a876ec4f\",\"subtype\":\"Chart\",\"type\":\"Plot\"}},\"id\":\"f9c940c2-87a9-4862-9907-dc5eee31366c\",\"type\":\"PanTool\"},{\"attributes\":{\"plot\":{\"id\":\"94a2836b-f34a-41f1-a6dc-b664a876ec4f\",\"subtype\":\"Chart\",\"type\":\"Plot\"}},\"id\":\"1ec2b0ce-cce9-425a-bb38-14ee3ff6ac7f\",\"type\":\"HelpTool\"},{\"attributes\":{\"callback\":null,\"end\":9.45},\"id\":\"71425025-ecec-46d4-9833-30156af47abd\",\"type\":\"Range1d\"},{\"attributes\":{\"fill_alpha\":{\"field\":\"fill_alpha\"},\"fill_color\":{\"field\":\"color\"},\"height\":{\"field\":\"height\",\"units\":\"data\"},\"line_color\":{\"field\":\"line_color\"},\"width\":{\"field\":\"width\",\"units\":\"data\"},\"x\":{\"field\":\"x\"},\"y\":{\"field\":\"y\"}},\"id\":\"64485527-2d97-427d-ab79-f23fd0fe83e1\",\"type\":\"Rect\"}],\"root_ids\":[\"94a2836b-f34a-41f1-a6dc-b664a876ec4f\",\"5ddd1913-0a0f-470f-a1a2-5904622f9c57\"]},\"title\":\"Bokeh Application\",\"version\":\"0.11.1\"}};\n",
       "            var render_items = [{\"docid\":\"75adc6a0-d44f-4ae1-b204-12211f43b066\",\"elementid\":\"ede8c18b-5ba1-4457-9580-aea85e28b2c0\",\"modelid\":\"5ddd1913-0a0f-470f-a1a2-5904622f9c57\",\"notebook_comms_target\":\"8dd9b001-bbbe-4402-bbfb-f917e684cdf3\"}];\n",
       "            \n",
       "            Bokeh.embed.embed_items(docs_json, render_items);\n",
       "        });\n",
       "      },\n",
       "      function(Bokeh) {\n",
       "      }\n",
       "    ];\n",
       "  \n",
       "    function run_inline_js() {\n",
       "      for (var i = 0; i < inline_js.length; i++) {\n",
       "        inline_js[i](window.Bokeh);\n",
       "      }\n",
       "    }\n",
       "  \n",
       "    if (window._bokeh_is_loading === 0) {\n",
       "      console.log(\"Bokeh: BokehJS loaded, going straight to plotting\");\n",
       "      run_inline_js();\n",
       "    } else {\n",
       "      load_libs(js_urls, function() {\n",
       "        console.log(\"Bokeh: BokehJS plotting callback run at\", now());\n",
       "        run_inline_js();\n",
       "      });\n",
       "    }\n",
       "  }(this));\n",
       "</script>"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "data": {
      "text/html": [
       "<p><code>&lt;Bokeh Notebook handle for <strong>In[7]</strong>&gt;</code></p>"
      ],
      "text/plain": [
       "<bokeh.io._CommsHandle at 0x7f1f26947650>"
      ]
     },
     "execution_count": 7,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "data_dur = {\n",
    "    'countries': countries_list,\n",
    "    'outbreaks duration': list(ebola_data[\"duration_days\"])\n",
    "}\n",
    "\n",
    "bar_dur = Bar(data_dur, values='outbreaks duration', label='countries', agg='mean', color=\"#586996\",\n",
    "              title=\"Durations of ebola outbreaks (days) per country\", plot_width=600, plot_height=500)\n",
    "\n",
    "output_notebook()\n",
    "\n",
    "show(bar_dur)"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "### Ebola virus subtypes"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 9,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "data": {
      "text/plain": [
       "ebola_subtype\n",
       "Taï Forest virus     1\n",
       "Bundibugyo virus     2\n",
       "Reston virus         7\n",
       "Sudan virus          8\n",
       "Zaire virus         15\n",
       "Name: ebola_subtype, dtype: int64"
      ]
     },
     "execution_count": 9,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "ebola_data.groupby([\"ebola_subtype\"])[\"ebola_subtype\"].count().order()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 10,
   "metadata": {
    "collapsed": true
   },
   "outputs": [],
   "source": [
    "# Bokeh can't seem to handle the unicode for trema accent on the 'i' in Taï Forest virus\n",
    "# I'm replacing it by a normal 'i'\n",
    "\n",
    "eb_virus_types = list(ebola_data[\"ebola_subtype\"])\n",
    "\n",
    "for i in range(len(eb_virus_types)): \n",
    "    if eb_virus_types[i] == u\"Ta\\xef Forest virus\":\n",
    "       eb_virus_types[i] = u\"Tai Forest virus\""
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 11,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "data": {
      "text/html": [
       "\n",
       "    <div class=\"bk-banner\">\n",
       "        <a href=\"http://bokeh.pydata.org\" target=\"_blank\" class=\"bk-logo bk-logo-small bk-logo-notebook\"></a>\n",
       "        <span id=\"51054a4e-b256-4cd5-bad3-56e7ea29877b\">Loading BokehJS ...</span>\n",
       "    </div>"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "data": {
      "application/javascript": [
       "\n",
       "(function(global) {\n",
       "  function now() {\n",
       "    return new Date();\n",
       "  }\n",
       "\n",
       "  if (typeof (window._bokeh_onload_callbacks) === \"undefined\") {\n",
       "    window._bokeh_onload_callbacks = [];\n",
       "  }\n",
       "\n",
       "  function run_callbacks() {\n",
       "    window._bokeh_onload_callbacks.forEach(function(callback) { callback() });\n",
       "    delete window._bokeh_onload_callbacks\n",
       "    console.info(\"Bokeh: all callbacks have finished\");\n",
       "  }\n",
       "\n",
       "  function load_libs(js_urls, callback) {\n",
       "    window._bokeh_onload_callbacks.push(callback);\n",
       "    if (window._bokeh_is_loading > 0) {\n",
       "      console.log(\"Bokeh: BokehJS is being loaded, scheduling callback at\", now());\n",
       "      return null;\n",
       "    }\n",
       "    if (js_urls == null || js_urls.length === 0) {\n",
       "      run_callbacks();\n",
       "      return null;\n",
       "    }\n",
       "    console.log(\"Bokeh: BokehJS not loaded, scheduling load and callback at\", now());\n",
       "    window._bokeh_is_loading = js_urls.length;\n",
       "    for (var i = 0; i < js_urls.length; i++) {\n",
       "      var url = js_urls[i];\n",
       "      var s = document.createElement('script');\n",
       "      s.src = url;\n",
       "      s.async = false;\n",
       "      s.onreadystatechange = s.onload = function() {\n",
       "        window._bokeh_is_loading--;\n",
       "        if (window._bokeh_is_loading === 0) {\n",
       "          console.log(\"Bokeh: all BokehJS libraries loaded\");\n",
       "          run_callbacks()\n",
       "        }\n",
       "      };\n",
       "      s.onerror = function() {\n",
       "        console.warn(\"failed to load library \" + url);\n",
       "      };\n",
       "      console.log(\"Bokeh: injecting script tag for BokehJS library: \", url);\n",
       "      document.getElementsByTagName(\"head\")[0].appendChild(s);\n",
       "    }\n",
       "  };\n",
       "\n",
       "  var js_urls = ['https://cdn.pydata.org/bokeh/release/bokeh-0.11.1.min.js', 'https://cdn.pydata.org/bokeh/release/bokeh-widgets-0.11.1.min.js', 'https://cdn.pydata.org/bokeh/release/bokeh-compiler-0.11.1.min.js'];\n",
       "\n",
       "  var inline_js = [\n",
       "    function(Bokeh) {\n",
       "      Bokeh.set_log_level(\"info\");\n",
       "    },\n",
       "    \n",
       "    function(Bokeh) {\n",
       "      Bokeh.$(\"#51054a4e-b256-4cd5-bad3-56e7ea29877b\").text(\"BokehJS successfully loaded\");\n",
       "    },\n",
       "    function(Bokeh) {\n",
       "      console.log(\"Bokeh: injecting CSS: https://cdn.pydata.org/bokeh/release/bokeh-0.11.1.min.css\");\n",
       "      Bokeh.embed.inject_css(\"https://cdn.pydata.org/bokeh/release/bokeh-0.11.1.min.css\");\n",
       "      console.log(\"Bokeh: injecting CSS: https://cdn.pydata.org/bokeh/release/bokeh-widgets-0.11.1.min.css\");\n",
       "      Bokeh.embed.inject_css(\"https://cdn.pydata.org/bokeh/release/bokeh-widgets-0.11.1.min.css\");\n",
       "    }\n",
       "  ];\n",
       "\n",
       "  function run_inline_js() {\n",
       "    for (var i = 0; i < inline_js.length; i++) {\n",
       "      inline_js[i](window.Bokeh);\n",
       "    }\n",
       "  }\n",
       "\n",
       "  if (window._bokeh_is_loading === 0) {\n",
       "    console.log(\"Bokeh: BokehJS loaded, going straight to plotting\");\n",
       "    run_inline_js();\n",
       "  } else {\n",
       "    load_libs(js_urls, function() {\n",
       "      console.log(\"Bokeh: BokehJS plotting callback run at\", now());\n",
       "      run_inline_js();\n",
       "    });\n",
       "  }\n",
       "}(this));"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "data": {
      "text/html": [
       "\n",
       "\n",
       "    <div class=\"plotdiv\" id=\"6539dc47-0a8f-4ef7-9c07-e884826605f4\"></div>\n",
       "<script type=\"text/javascript\">\n",
       "  \n",
       "  (function(global) {\n",
       "    function now() {\n",
       "      return new Date();\n",
       "    }\n",
       "  \n",
       "    if (typeof (window._bokeh_onload_callbacks) === \"undefined\") {\n",
       "      window._bokeh_onload_callbacks = [];\n",
       "    }\n",
       "  \n",
       "    function run_callbacks() {\n",
       "      window._bokeh_onload_callbacks.forEach(function(callback) { callback() });\n",
       "      delete window._bokeh_onload_callbacks\n",
       "      console.info(\"Bokeh: all callbacks have finished\");\n",
       "    }\n",
       "  \n",
       "    function load_libs(js_urls, callback) {\n",
       "      window._bokeh_onload_callbacks.push(callback);\n",
       "      if (window._bokeh_is_loading > 0) {\n",
       "        console.log(\"Bokeh: BokehJS is being loaded, scheduling callback at\", now());\n",
       "        return null;\n",
       "      }\n",
       "      if (js_urls == null || js_urls.length === 0) {\n",
       "        run_callbacks();\n",
       "        return null;\n",
       "      }\n",
       "      console.log(\"Bokeh: BokehJS not loaded, scheduling load and callback at\", now());\n",
       "      window._bokeh_is_loading = js_urls.length;\n",
       "      for (var i = 0; i < js_urls.length; i++) {\n",
       "        var url = js_urls[i];\n",
       "        var s = document.createElement('script');\n",
       "        s.src = url;\n",
       "        s.async = false;\n",
       "        s.onreadystatechange = s.onload = function() {\n",
       "          window._bokeh_is_loading--;\n",
       "          if (window._bokeh_is_loading === 0) {\n",
       "            console.log(\"Bokeh: all BokehJS libraries loaded\");\n",
       "            run_callbacks()\n",
       "          }\n",
       "        };\n",
       "        s.onerror = function() {\n",
       "          console.warn(\"failed to load library \" + url);\n",
       "        };\n",
       "        console.log(\"Bokeh: injecting script tag for BokehJS library: \", url);\n",
       "        document.getElementsByTagName(\"head\")[0].appendChild(s);\n",
       "      }\n",
       "    };var element = document.getElementById(\"6539dc47-0a8f-4ef7-9c07-e884826605f4\");\n",
       "    if (element == null) {\n",
       "      console.log(\"Bokeh: ERROR: autoload.js configured with elementid '6539dc47-0a8f-4ef7-9c07-e884826605f4' but no matching script tag was found. \")\n",
       "      return false;\n",
       "    }\n",
       "  \n",
       "    var js_urls = [];\n",
       "  \n",
       "    var inline_js = [\n",
       "      function(Bokeh) {\n",
       "        Bokeh.$(function() {\n",
       "            var docs_json = {\"461b8b4f-bcfa-44be-b35f-cbd99214b4dd\":{\"roots\":{\"references\":[{\"attributes\":{\"below\":[{\"id\":\"b8ae8690-6986-4f84-bac9-b3123d0eae7b\",\"type\":\"CategoricalAxis\"}],\"left\":[{\"id\":\"cbb048fe-cd0f-4705-a062-3472481f1eb5\",\"type\":\"LinearAxis\"}],\"legend\":null,\"plot_height\":500,\"renderers\":[{\"id\":\"cfa1cc75-e9c2-4fac-b0df-55023a3a1286\",\"type\":\"BoxAnnotation\"},{\"id\":\"60490201-6c1f-4d4b-a6f1-38e609fa813e\",\"type\":\"GlyphRenderer\"},{\"id\":\"06e3306d-a676-4925-ae4e-bce7b4f47c7d\",\"type\":\"GlyphRenderer\"},{\"id\":\"6d054f5f-92ae-4c2b-a41b-a1181268ff02\",\"type\":\"GlyphRenderer\"},{\"id\":\"a135dce8-bc91-4e75-9ec7-433e01709d8d\",\"type\":\"GlyphRenderer\"},{\"id\":\"6cd18915-14cf-42b4-aba6-02d45f0da891\",\"type\":\"GlyphRenderer\"},{\"id\":\"d4c847f3-fa2f-4d48-9b14-60e55e4f832c\",\"type\":\"GlyphRenderer\"},{\"id\":\"34f1bfc3-9f1d-4638-bbec-dbc3bfa67c23\",\"type\":\"GlyphRenderer\"},{\"id\":\"0484c42f-91cf-412d-a87b-bdd21234371e\",\"type\":\"GlyphRenderer\"},{\"id\":\"f960ac6c-cb7c-4a58-88d4-93a5fb32f9f8\",\"type\":\"GlyphRenderer\"},{\"id\":\"654d3a18-98b6-4998-8d6f-a82f507ac631\",\"type\":\"GlyphRenderer\"},{\"id\":\"6724b000-953b-46af-9acf-1e4796445918\",\"type\":\"GlyphRenderer\"},{\"id\":\"b8ae8690-6986-4f84-bac9-b3123d0eae7b\",\"type\":\"CategoricalAxis\"},{\"id\":\"cbb048fe-cd0f-4705-a062-3472481f1eb5\",\"type\":\"LinearAxis\"},{\"id\":\"2cef4a0f-3757-42a2-8b84-7b00dae2ed57\",\"type\":\"Grid\"}],\"title\":\"Durations of ebola outbreaks (days) per country\",\"title_text_font_size\":{\"value\":\"14pt\"},\"tool_events\":{\"id\":\"5d6a564e-f8ad-42af-b578-a36544df3bf8\",\"type\":\"ToolEvents\"},\"tools\":[{\"id\":\"f182e77e-42a5-4ea9-83cf-cf47fbe6ac86\",\"type\":\"PanTool\"},{\"id\":\"5f9f2893-cd04-48db-8d74-b4ddc885257b\",\"type\":\"WheelZoomTool\"},{\"id\":\"45e90ffa-ff6f-4018-920b-cc0333baffca\",\"type\":\"BoxZoomTool\"},{\"id\":\"e647a8ea-0b2c-46ca-ada2-75dfb7558a60\",\"type\":\"PreviewSaveTool\"},{\"id\":\"7cb611ab-da3d-43b0-8317-ba216bd8e6d4\",\"type\":\"ResizeTool\"},{\"id\":\"a4811312-1260-472d-a9c7-fce947c92c43\",\"type\":\"ResetTool\"},{\"id\":\"365bd602-73b5-462c-b9b2-4d4b8478661a\",\"type\":\"HelpTool\"}],\"x_mapper_type\":\"auto\",\"x_range\":{\"id\":\"0f1ca060-3dd4-4139-81c7-a86ebd2a9311\",\"type\":\"FactorRange\"},\"xgrid\":false,\"xscale\":\"auto\",\"y_mapper_type\":\"auto\",\"y_range\":{\"id\":\"4c03c10c-27c2-47a0-acb3-5062df8c2fb6\",\"type\":\"Range1d\"},\"yscale\":\"auto\"},\"id\":\"eb23d7c3-7716-4f40-8f24-4709a1c0ded1\",\"subtype\":\"Chart\",\"type\":\"Plot\"},{\"attributes\":{\"data_source\":{\"id\":\"4c75c3fd-3a11-45b7-a0ec-b5b8e121e944\",\"type\":\"ColumnDataSource\"},\"glyph\":{\"id\":\"49577d93-30f4-4433-bc5e-489ce400765a\",\"type\":\"Rect\"},\"hover_glyph\":null,\"nonselection_glyph\":null,\"selection_glyph\":null},\"id\":\"06e3306d-a676-4925-ae4e-bce7b4f47c7d\",\"type\":\"GlyphRenderer\"},{\"attributes\":{},\"id\":\"567eeed8-9e1f-4d93-89d9-bac995d3ef90\",\"type\":\"ToolEvents\"},{\"attributes\":{\"callback\":null,\"column_names\":[\"line_color\",\"line_alpha\",\"color\",\"fill_alpha\",\"height\",\"width\",\"y\",\"x\"],\"data\":{\"chart_index\":[{\"countries\":\"Cote d'Ivoire (Ivory Coast)\"}],\"color\":[\"#586996\"],\"countries\":[\"Cote d'Ivoire (Ivory Coast)\"],\"fill_alpha\":[0.8],\"height\":[364.0],\"line_alpha\":[1.0],\"line_color\":[\"white\"],\"width\":[0.8],\"x\":[\"Cote d'Ivoire (Ivory Coast)\"],\"y\":[182.0]}},\"id\":\"400b876d-fc1a-4c11-8fd4-0609ac551be6\",\"type\":\"ColumnDataSource\"},{\"attributes\":{\"fill_alpha\":{\"field\":\"fill_alpha\"},\"fill_color\":{\"field\":\"color\"},\"height\":{\"field\":\"height\",\"units\":\"data\"},\"line_color\":{\"field\":\"line_color\"},\"width\":{\"field\":\"width\",\"units\":\"data\"},\"x\":{\"field\":\"x\"},\"y\":{\"field\":\"y\"}},\"id\":\"9e28e433-f91f-4b93-92ad-16ead15ee882\",\"type\":\"Rect\"},{\"attributes\":{\"fill_alpha\":{\"field\":\"fill_alpha\"},\"fill_color\":{\"field\":\"color\"},\"height\":{\"field\":\"height\",\"units\":\"data\"},\"line_color\":{\"field\":\"line_color\"},\"width\":{\"field\":\"width\",\"units\":\"data\"},\"x\":{\"field\":\"x\"},\"y\":{\"field\":\"y\"}},\"id\":\"228d2300-ef92-46c6-8938-2ebf6092572e\",\"type\":\"Rect\"},{\"attributes\":{\"fill_alpha\":{\"field\":\"fill_alpha\"},\"fill_color\":{\"field\":\"color\"},\"height\":{\"field\":\"height\",\"units\":\"data\"},\"line_color\":{\"field\":\"line_color\"},\"width\":{\"field\":\"width\",\"units\":\"data\"},\"x\":{\"field\":\"x\"},\"y\":{\"field\":\"y\"}},\"id\":\"80fa5307-43d3-44ae-b62b-67119ed05e5f\",\"type\":\"Rect\"},{\"attributes\":{\"callback\":null,\"column_names\":[\"line_color\",\"line_alpha\",\"color\",\"fill_alpha\",\"height\",\"width\",\"y\",\"x\"],\"data\":{\"chart_index\":[{\"countries\":\"USA\"}],\"color\":[\"#586996\"],\"countries\":[\"USA\"],\"fill_alpha\":[0.8],\"height\":[364.3333333333333],\"line_alpha\":[1.0],\"line_color\":[\"white\"],\"width\":[0.8],\"x\":[\"USA\"],\"y\":[182.16666666666666]}},\"id\":\"a84b3047-6889-46ab-ba78-50940762f0f6\",\"type\":\"ColumnDataSource\"},{\"attributes\":{\"callback\":null,\"factors\":[\"Cote d'Ivoire (Ivory Coast)\",\"Democratic Republic of the Congo\",\"England\",\"Gabon\",\"Italy\",\"Philippines\",\"Russia\",\"South Africa\",\"Sudan (South Sudan)\",\"USA\",\"Uganda\"]},\"id\":\"0f1ca060-3dd4-4139-81c7-a86ebd2a9311\",\"type\":\"FactorRange\"},{\"attributes\":{\"callback\":null,\"end\":383.25},\"id\":\"4c03c10c-27c2-47a0-acb3-5062df8c2fb6\",\"type\":\"Range1d\"},{\"attributes\":{\"plot\":{\"id\":\"d7a3316b-8628-4ce7-87bb-2729fc49c2aa\",\"subtype\":\"Chart\",\"type\":\"Plot\"}},\"id\":\"67ebd832-2808-46bb-8c13-c8a8984eb29b\",\"type\":\"PanTool\"},{\"attributes\":{\"fill_alpha\":{\"field\":\"fill_alpha\"},\"fill_color\":{\"field\":\"color\"},\"height\":{\"field\":\"height\",\"units\":\"data\"},\"line_color\":{\"field\":\"line_color\"},\"width\":{\"field\":\"width\",\"units\":\"data\"},\"x\":{\"field\":\"x\"},\"y\":{\"field\":\"y\"}},\"id\":\"7b1ee0af-c34c-4e89-b816-aecf518de4ca\",\"type\":\"Rect\"},{\"attributes\":{\"plot\":{\"id\":\"0c398e84-c441-4680-a2f7-9ddb213de414\",\"subtype\":\"Chart\",\"type\":\"Plot\"}},\"id\":\"f32d348b-76de-4952-a909-4589b790122e\",\"type\":\"WheelZoomTool\"},{\"attributes\":{\"plot\":{\"id\":\"0c398e84-c441-4680-a2f7-9ddb213de414\",\"subtype\":\"Chart\",\"type\":\"Plot\"}},\"id\":\"61bc9097-9862-4946-bc4d-648d9711ba07\",\"type\":\"PanTool\"},{\"attributes\":{\"plot\":{\"id\":\"d7a3316b-8628-4ce7-87bb-2729fc49c2aa\",\"subtype\":\"Chart\",\"type\":\"Plot\"}},\"id\":\"6b8b9d02-0625-4a54-bb16-41570054a8b9\",\"type\":\"ResetTool\"},{\"attributes\":{},\"id\":\"5d6a564e-f8ad-42af-b578-a36544df3bf8\",\"type\":\"ToolEvents\"},{\"attributes\":{\"callback\":null,\"column_names\":[\"line_color\",\"line_alpha\",\"color\",\"fill_alpha\",\"height\",\"width\",\"y\",\"x\"],\"data\":{\"chart_index\":[{\"countries\":\"USA\"}],\"color\":[\"#3B6849\"],\"countries\":[\"USA\"],\"fill_alpha\":[0.8],\"height\":[3.0],\"line_alpha\":[1.0],\"line_color\":[\"white\"],\"width\":[0.8],\"x\":[\"USA\"],\"y\":[1.5]}},\"id\":\"99e018be-6df4-4067-b392-f0d77612fda1\",\"type\":\"ColumnDataSource\"},{\"attributes\":{\"fill_alpha\":{\"field\":\"fill_alpha\"},\"fill_color\":{\"field\":\"color\"},\"height\":{\"field\":\"height\",\"units\":\"data\"},\"line_color\":{\"field\":\"line_color\"},\"width\":{\"field\":\"width\",\"units\":\"data\"},\"x\":{\"field\":\"x\"},\"y\":{\"field\":\"y\"}},\"id\":\"40430576-60bc-490d-b944-8c236e3f39e5\",\"type\":\"Rect\"},{\"attributes\":{\"fill_alpha\":{\"field\":\"fill_alpha\"},\"fill_color\":{\"field\":\"color\"},\"height\":{\"field\":\"height\",\"units\":\"data\"},\"line_color\":{\"field\":\"line_color\"},\"width\":{\"field\":\"width\",\"units\":\"data\"},\"x\":{\"field\":\"x\"},\"y\":{\"field\":\"y\"}},\"id\":\"d82c05fa-dcde-4ead-8a16-7f289d998c6c\",\"type\":\"Rect\"},{\"attributes\":{\"fill_alpha\":{\"field\":\"fill_alpha\"},\"fill_color\":{\"field\":\"color\"},\"height\":{\"field\":\"height\",\"units\":\"data\"},\"line_color\":{\"field\":\"line_color\"},\"width\":{\"field\":\"width\",\"units\":\"data\"},\"x\":{\"field\":\"x\"},\"y\":{\"field\":\"y\"}},\"id\":\"9461b6af-38c8-44ab-841e-5e18b60d3a39\",\"type\":\"Rect\"},{\"attributes\":{\"callback\":null,\"column_names\":[\"line_color\",\"line_alpha\",\"color\",\"fill_alpha\",\"height\",\"width\",\"y\",\"x\"],\"data\":{\"chart_index\":[{\"countries\":\"Philippines\"}],\"color\":[\"#3B6849\"],\"countries\":[\"Philippines\"],\"fill_alpha\":[0.8],\"height\":[3.0],\"line_alpha\":[1.0],\"line_color\":[\"white\"],\"width\":[0.8],\"x\":[\"Philippines\"],\"y\":[1.5]}},\"id\":\"0480d8af-ca1b-40f3-b4fe-2381d3220e7e\",\"type\":\"ColumnDataSource\"},{\"attributes\":{\"callback\":null,\"column_names\":[\"line_color\",\"line_alpha\",\"color\",\"fill_alpha\",\"height\",\"width\",\"y\",\"x\"],\"data\":{\"chart_index\":[{\"countries\":\"Italy\"}],\"color\":[\"#586996\"],\"countries\":[\"Italy\"],\"fill_alpha\":[0.8],\"height\":[365.0],\"line_alpha\":[1.0],\"line_color\":[\"white\"],\"width\":[0.8],\"x\":[\"Italy\"],\"y\":[182.5]}},\"id\":\"da1303b3-e764-4f93-af00-dc86d04bc4fb\",\"type\":\"ColumnDataSource\"},{\"attributes\":{\"fill_alpha\":{\"field\":\"fill_alpha\"},\"fill_color\":{\"field\":\"color\"},\"height\":{\"field\":\"height\",\"units\":\"data\"},\"line_color\":{\"field\":\"line_color\"},\"width\":{\"field\":\"width\",\"units\":\"data\"},\"x\":{\"field\":\"x\"},\"y\":{\"field\":\"y\"}},\"id\":\"1f330582-1b4c-44d9-a107-248d1c58d718\",\"type\":\"Rect\"},{\"attributes\":{\"data_source\":{\"id\":\"72ab5361-5e86-41bc-a8e7-8f339e72b67b\",\"type\":\"ColumnDataSource\"},\"glyph\":{\"id\":\"6f0fca46-a106-4fe9-af8b-4eb259e55e39\",\"type\":\"Rect\"},\"hover_glyph\":null,\"nonselection_glyph\":null,\"selection_glyph\":null},\"id\":\"933cad85-20da-408c-b583-ab795bd401a9\",\"type\":\"GlyphRenderer\"},{\"attributes\":{\"plot\":{\"id\":\"0c398e84-c441-4680-a2f7-9ddb213de414\",\"subtype\":\"Chart\",\"type\":\"Plot\"}},\"id\":\"8c2aad38-a44e-495a-9813-4625c3be5411\",\"type\":\"ResizeTool\"},{\"attributes\":{\"data_source\":{\"id\":\"99e018be-6df4-4067-b392-f0d77612fda1\",\"type\":\"ColumnDataSource\"},\"glyph\":{\"id\":\"56919d86-77ae-4a0b-8115-ff8fd07f2f80\",\"type\":\"Rect\"},\"hover_glyph\":null,\"nonselection_glyph\":null,\"selection_glyph\":null},\"id\":\"747f0f49-f15d-45e3-993a-9d6210c05add\",\"type\":\"GlyphRenderer\"},{\"attributes\":{\"data_source\":{\"id\":\"66b32b25-1ee7-4b3b-a57a-a381c17dbf92\",\"type\":\"ColumnDataSource\"},\"glyph\":{\"id\":\"6af968b4-8425-4a7a-81ff-7575ff63fde2\",\"type\":\"Rect\"},\"hover_glyph\":null,\"nonselection_glyph\":null,\"selection_glyph\":null},\"id\":\"07c6b215-b12e-4c8e-9b87-cbb6a678b1a6\",\"type\":\"GlyphRenderer\"},{\"attributes\":{\"callback\":null,\"column_names\":[\"line_color\",\"line_alpha\",\"color\",\"fill_alpha\",\"height\",\"width\",\"y\",\"x\"],\"data\":{\"chart_index\":[{\"countries\":\"Cote d'Ivoire (Ivory Coast)\"}],\"color\":[\"#3B6849\"],\"countries\":[\"Cote d'Ivoire (Ivory Coast)\"],\"fill_alpha\":[0.8],\"height\":[1.0],\"line_alpha\":[1.0],\"line_color\":[\"white\"],\"width\":[0.8],\"x\":[\"Cote d'Ivoire (Ivory Coast)\"],\"y\":[0.5]}},\"id\":\"72370c6d-2170-4b29-a7ab-3a65dcf1172b\",\"type\":\"ColumnDataSource\"},{\"attributes\":{\"data_source\":{\"id\":\"0480d8af-ca1b-40f3-b4fe-2381d3220e7e\",\"type\":\"ColumnDataSource\"},\"glyph\":{\"id\":\"d82c05fa-dcde-4ead-8a16-7f289d998c6c\",\"type\":\"Rect\"},\"hover_glyph\":null,\"nonselection_glyph\":null,\"selection_glyph\":null},\"id\":\"62c83548-d747-4450-964a-8a2dbb892164\",\"type\":\"GlyphRenderer\"},{\"attributes\":{\"fill_alpha\":{\"field\":\"fill_alpha\"},\"fill_color\":{\"field\":\"color\"},\"height\":{\"field\":\"height\",\"units\":\"data\"},\"line_color\":{\"field\":\"line_color\"},\"width\":{\"field\":\"width\",\"units\":\"data\"},\"x\":{\"field\":\"x\"},\"y\":{\"field\":\"y\"}},\"id\":\"1d4bb53a-2668-4180-b5be-1c4f927097a0\",\"type\":\"Rect\"},{\"attributes\":{\"axis_label\":\"Countries\",\"formatter\":{\"id\":\"afc6e9e0-c418-420d-9d25-92d7617fcc2b\",\"type\":\"CategoricalTickFormatter\"},\"major_label_orientation\":0.7853981633974483,\"plot\":{\"id\":\"eb23d7c3-7716-4f40-8f24-4709a1c0ded1\",\"subtype\":\"Chart\",\"type\":\"Plot\"},\"ticker\":{\"id\":\"d21faf53-ecd0-4189-8935-9689462d70f1\",\"type\":\"CategoricalTicker\"}},\"id\":\"b8ae8690-6986-4f84-bac9-b3123d0eae7b\",\"type\":\"CategoricalAxis\"},{\"attributes\":{\"plot\":{\"id\":\"d7a3316b-8628-4ce7-87bb-2729fc49c2aa\",\"subtype\":\"Chart\",\"type\":\"Plot\"}},\"id\":\"b12c28a7-af3f-4375-b6f3-b08eb0a2c4e7\",\"type\":\"WheelZoomTool\"},{\"attributes\":{\"axis_label\":\"Ebola Virus Subtypes\",\"formatter\":{\"id\":\"b4e32f55-23ee-4efa-830e-a7c22d6607fd\",\"type\":\"CategoricalTickFormatter\"},\"major_label_orientation\":0.7853981633974483,\"plot\":{\"id\":\"d7a3316b-8628-4ce7-87bb-2729fc49c2aa\",\"subtype\":\"Chart\",\"type\":\"Plot\"},\"ticker\":{\"id\":\"21d20399-077a-4939-9eb7-ac3ba6e7bc48\",\"type\":\"CategoricalTicker\"}},\"id\":\"c3324792-283d-445a-9d2f-ce2483b6d806\",\"type\":\"CategoricalAxis\"},{\"attributes\":{},\"id\":\"a418eb99-7c34-40d5-8103-8c86191ddd5f\",\"type\":\"BasicTickFormatter\"},{\"attributes\":{\"callback\":null,\"factors\":[\"Bundibugyo virus\",\"Reston virus\",\"Sudan virus\",\"Tai Forest virus\",\"Zaire virus\"]},\"id\":\"9be1d3ce-12ca-4c8a-ae8c-5148d4eefb8b\",\"type\":\"FactorRange\"},{\"attributes\":{\"callback\":null,\"column_names\":[\"line_color\",\"line_alpha\",\"color\",\"fill_alpha\",\"height\",\"width\",\"y\",\"x\"],\"data\":{\"chart_index\":[{\"countries\":\"England\"}],\"color\":[\"#3B6849\"],\"countries\":[\"England\"],\"fill_alpha\":[0.8],\"height\":[1.0],\"line_alpha\":[1.0],\"line_color\":[\"white\"],\"width\":[0.8],\"x\":[\"England\"],\"y\":[0.5]}},\"id\":\"89640d36-2845-4f0c-a796-1ebc2c2acddb\",\"type\":\"ColumnDataSource\"},{\"attributes\":{},\"id\":\"87608eb1-4006-415a-892e-593a7d1efd3f\",\"type\":\"CategoricalTickFormatter\"},{\"attributes\":{\"data_source\":{\"id\":\"4c4b9425-2bd6-4086-b4a9-0256694da5f8\",\"type\":\"ColumnDataSource\"},\"glyph\":{\"id\":\"72a351cd-bc4f-4e70-86cc-e9f7bb871c88\",\"type\":\"Rect\"},\"hover_glyph\":null,\"nonselection_glyph\":null,\"selection_glyph\":null},\"id\":\"7972b4b4-5aba-4b8d-ac0d-fd6c7ef4853d\",\"type\":\"GlyphRenderer\"},{\"attributes\":{},\"id\":\"21d20399-077a-4939-9eb7-ac3ba6e7bc48\",\"type\":\"CategoricalTicker\"},{\"attributes\":{\"callback\":null,\"column_names\":[\"line_color\",\"line_alpha\",\"color\",\"fill_alpha\",\"height\",\"width\",\"y\",\"x\"],\"data\":{\"chart_index\":[{\"ebola virus subtypes\":\"Reston virus\"}],\"color\":[\"#E2AE7A\"],\"ebola virus subtypes\":[\"Reston virus\"],\"fill_alpha\":[0.8],\"height\":[7.0],\"line_alpha\":[1.0],\"line_color\":[\"white\"],\"width\":[0.5],\"x\":[\"Reston virus\"],\"y\":[3.5]}},\"id\":\"51121649-e91c-46a2-a352-2ebd7042c095\",\"type\":\"ColumnDataSource\"},{\"attributes\":{\"fill_alpha\":{\"field\":\"fill_alpha\"},\"fill_color\":{\"field\":\"color\"},\"height\":{\"field\":\"height\",\"units\":\"data\"},\"line_color\":{\"field\":\"line_color\"},\"width\":{\"field\":\"width\",\"units\":\"data\"},\"x\":{\"field\":\"x\"},\"y\":{\"field\":\"y\"}},\"id\":\"f09062fc-579e-465d-b88a-f2c382aee2ce\",\"type\":\"Rect\"},{\"attributes\":{\"callback\":null,\"column_names\":[\"line_color\",\"line_alpha\",\"color\",\"fill_alpha\",\"height\",\"width\",\"y\",\"x\"],\"data\":{\"chart_index\":[{\"ebola virus subtypes\":\"Tai Forest virus\"}],\"color\":[\"#E2AE7A\"],\"ebola virus subtypes\":[\"Tai Forest virus\"],\"fill_alpha\":[0.8],\"height\":[1.0],\"line_alpha\":[1.0],\"line_color\":[\"white\"],\"width\":[0.5],\"x\":[\"Tai Forest virus\"],\"y\":[0.5]}},\"id\":\"72ab5361-5e86-41bc-a8e7-8f339e72b67b\",\"type\":\"ColumnDataSource\"},{\"attributes\":{\"callback\":null,\"column_names\":[\"line_color\",\"line_alpha\",\"color\",\"fill_alpha\",\"height\",\"width\",\"y\",\"x\"],\"data\":{\"chart_index\":[{\"countries\":\"Uganda\"}],\"color\":[\"#586996\"],\"countries\":[\"Uganda\"],\"fill_alpha\":[0.8],\"height\":[206.8],\"line_alpha\":[1.0],\"line_color\":[\"white\"],\"width\":[0.8],\"x\":[\"Uganda\"],\"y\":[103.4]}},\"id\":\"b2d18286-29b0-47f8-896c-6e93df436ad5\",\"type\":\"ColumnDataSource\"},{\"attributes\":{\"data_source\":{\"id\":\"b912ae67-b752-429f-af5c-83e297de87a4\",\"type\":\"ColumnDataSource\"},\"glyph\":{\"id\":\"14e86f15-1829-4db1-af39-41470aa1d497\",\"type\":\"Rect\"},\"hover_glyph\":null,\"nonselection_glyph\":null,\"selection_glyph\":null},\"id\":\"c72597ae-66d4-4466-b0c2-75b9cc4799fc\",\"type\":\"GlyphRenderer\"},{\"attributes\":{\"overlay\":{\"id\":\"cfa1cc75-e9c2-4fac-b0df-55023a3a1286\",\"type\":\"BoxAnnotation\"},\"plot\":{\"id\":\"eb23d7c3-7716-4f40-8f24-4709a1c0ded1\",\"subtype\":\"Chart\",\"type\":\"Plot\"}},\"id\":\"45e90ffa-ff6f-4018-920b-cc0333baffca\",\"type\":\"BoxZoomTool\"},{\"attributes\":{\"fill_alpha\":{\"field\":\"fill_alpha\"},\"fill_color\":{\"field\":\"color\"},\"height\":{\"field\":\"height\",\"units\":\"data\"},\"line_color\":{\"field\":\"line_color\"},\"width\":{\"field\":\"width\",\"units\":\"data\"},\"x\":{\"field\":\"x\"},\"y\":{\"field\":\"y\"}},\"id\":\"72a351cd-bc4f-4e70-86cc-e9f7bb871c88\",\"type\":\"Rect\"},{\"attributes\":{\"axis_label\":\"Countries\",\"formatter\":{\"id\":\"87608eb1-4006-415a-892e-593a7d1efd3f\",\"type\":\"CategoricalTickFormatter\"},\"major_label_orientation\":0.7853981633974483,\"plot\":{\"id\":\"0c398e84-c441-4680-a2f7-9ddb213de414\",\"subtype\":\"Chart\",\"type\":\"Plot\"},\"ticker\":{\"id\":\"7b65d05c-4614-4e92-a918-e6e898270147\",\"type\":\"CategoricalTicker\"}},\"id\":\"8c1c3511-ac5b-48f2-8353-f4d6c91f524e\",\"type\":\"CategoricalAxis\"},{\"attributes\":{\"plot\":{\"id\":\"0c398e84-c441-4680-a2f7-9ddb213de414\",\"subtype\":\"Chart\",\"type\":\"Plot\"}},\"id\":\"eafc2203-590d-4478-b4cc-83697cf75909\",\"type\":\"HelpTool\"},{\"attributes\":{\"callback\":null,\"column_names\":[\"line_color\",\"line_alpha\",\"color\",\"fill_alpha\",\"height\",\"width\",\"y\",\"x\"],\"data\":{\"chart_index\":[{\"countries\":\"Russia\"}],\"color\":[\"#3B6849\"],\"countries\":[\"Russia\"],\"fill_alpha\":[0.8],\"height\":[2.0],\"line_alpha\":[1.0],\"line_color\":[\"white\"],\"width\":[0.8],\"x\":[\"Russia\"],\"y\":[1.0]}},\"id\":\"6088fc56-5bb5-4dc3-b4ac-8ce248601aae\",\"type\":\"ColumnDataSource\"},{\"attributes\":{},\"id\":\"847084a4-9061-40b7-859f-48b8e987401d\",\"type\":\"BasicTicker\"},{\"attributes\":{\"plot\":{\"id\":\"eb23d7c3-7716-4f40-8f24-4709a1c0ded1\",\"subtype\":\"Chart\",\"type\":\"Plot\"}},\"id\":\"365bd602-73b5-462c-b9b2-4d4b8478661a\",\"type\":\"HelpTool\"},{\"attributes\":{\"data_source\":{\"id\":\"a84b3047-6889-46ab-ba78-50940762f0f6\",\"type\":\"ColumnDataSource\"},\"glyph\":{\"id\":\"1d4bb53a-2668-4180-b5be-1c4f927097a0\",\"type\":\"Rect\"},\"hover_glyph\":null,\"nonselection_glyph\":null,\"selection_glyph\":null},\"id\":\"6d054f5f-92ae-4c2b-a41b-a1181268ff02\",\"type\":\"GlyphRenderer\"},{\"attributes\":{\"callback\":null,\"column_names\":[\"line_color\",\"line_alpha\",\"color\",\"fill_alpha\",\"height\",\"width\",\"y\",\"x\"],\"data\":{\"chart_index\":[{\"countries\":\"Sudan (South Sudan)\"}],\"color\":[\"#3B6849\"],\"countries\":[\"Sudan (South Sudan)\"],\"fill_alpha\":[0.8],\"height\":[3.0],\"line_alpha\":[1.0],\"line_color\":[\"white\"],\"width\":[0.8],\"x\":[\"Sudan (South Sudan)\"],\"y\":[1.5]}},\"id\":\"66b32b25-1ee7-4b3b-a57a-a381c17dbf92\",\"type\":\"ColumnDataSource\"},{\"attributes\":{\"fill_alpha\":{\"field\":\"fill_alpha\"},\"fill_color\":{\"field\":\"color\"},\"height\":{\"field\":\"height\",\"units\":\"data\"},\"line_color\":{\"field\":\"line_color\"},\"width\":{\"field\":\"width\",\"units\":\"data\"},\"x\":{\"field\":\"x\"},\"y\":{\"field\":\"y\"}},\"id\":\"56919d86-77ae-4a0b-8115-ff8fd07f2f80\",\"type\":\"Rect\"},{\"attributes\":{\"below\":[{\"id\":\"c3324792-283d-445a-9d2f-ce2483b6d806\",\"type\":\"CategoricalAxis\"}],\"left\":[{\"id\":\"7b6169c4-b3cc-4201-bcc5-2231553844e9\",\"type\":\"LinearAxis\"}],\"legend\":null,\"plot_height\":400,\"renderers\":[{\"id\":\"9ff23f18-4655-486a-bdab-e6e17280142b\",\"type\":\"BoxAnnotation\"},{\"id\":\"668cc513-8aa6-4cf9-a553-bf1ac292082e\",\"type\":\"GlyphRenderer\"},{\"id\":\"d01eff0d-8eba-4f11-9dfe-a1547b11f0a9\",\"type\":\"GlyphRenderer\"},{\"id\":\"409725d1-e685-4da5-9809-1bdaf6fcaa30\",\"type\":\"GlyphRenderer\"},{\"id\":\"fb267465-8438-409a-a5ec-b3ec817bbbe2\",\"type\":\"GlyphRenderer\"},{\"id\":\"933cad85-20da-408c-b583-ab795bd401a9\",\"type\":\"GlyphRenderer\"},{\"id\":\"c3324792-283d-445a-9d2f-ce2483b6d806\",\"type\":\"CategoricalAxis\"},{\"id\":\"7b6169c4-b3cc-4201-bcc5-2231553844e9\",\"type\":\"LinearAxis\"},{\"id\":\"ac715791-0f78-42ab-8ba5-dde6b8a84805\",\"type\":\"Grid\"}],\"title\":\"Number of ebola outbreak(s) per virus subtype\",\"title_text_font_size\":{\"value\":\"14pt\"},\"tool_events\":{\"id\":\"0d259ae7-3c06-425c-b324-5418f0bab211\",\"type\":\"ToolEvents\"},\"tools\":[{\"id\":\"67ebd832-2808-46bb-8c13-c8a8984eb29b\",\"type\":\"PanTool\"},{\"id\":\"b12c28a7-af3f-4375-b6f3-b08eb0a2c4e7\",\"type\":\"WheelZoomTool\"},{\"id\":\"593df09b-69ea-4fd0-8314-b86bc5284f2d\",\"type\":\"BoxZoomTool\"},{\"id\":\"a2f45ca7-fec6-46d4-9afc-938b8dbc9bbb\",\"type\":\"PreviewSaveTool\"},{\"id\":\"d8976cc0-59be-490b-a15b-0f7a48325aae\",\"type\":\"ResizeTool\"},{\"id\":\"6b8b9d02-0625-4a54-bb16-41570054a8b9\",\"type\":\"ResetTool\"},{\"id\":\"50adf6db-f9c1-4041-80a1-fbef10e05189\",\"type\":\"HelpTool\"}],\"x_mapper_type\":\"auto\",\"x_range\":{\"id\":\"9be1d3ce-12ca-4c8a-ae8c-5148d4eefb8b\",\"type\":\"FactorRange\"},\"xgrid\":false,\"xscale\":\"auto\",\"y_mapper_type\":\"auto\",\"y_range\":{\"id\":\"0a73a1b5-75b8-4c20-afc0-a0319b3c1abf\",\"type\":\"Range1d\"},\"yscale\":\"auto\"},\"id\":\"d7a3316b-8628-4ce7-87bb-2729fc49c2aa\",\"subtype\":\"Chart\",\"type\":\"Plot\"},{\"attributes\":{\"plot\":{\"id\":\"d7a3316b-8628-4ce7-87bb-2729fc49c2aa\",\"subtype\":\"Chart\",\"type\":\"Plot\"}},\"id\":\"d8976cc0-59be-490b-a15b-0f7a48325aae\",\"type\":\"ResizeTool\"},{\"attributes\":{\"callback\":null,\"column_names\":[\"line_color\",\"line_alpha\",\"color\",\"fill_alpha\",\"height\",\"width\",\"y\",\"x\"],\"data\":{\"chart_index\":[{\"countries\":\"Italy\"}],\"color\":[\"#3B6849\"],\"countries\":[\"Italy\"],\"fill_alpha\":[0.8],\"height\":[1.0],\"line_alpha\":[1.0],\"line_color\":[\"white\"],\"width\":[0.8],\"x\":[\"Italy\"],\"y\":[0.5]}},\"id\":\"02a874dc-3b2f-458f-94e6-bd271ac51c89\",\"type\":\"ColumnDataSource\"},{\"attributes\":{\"axis_label\":\"Mean( Outbreaks Duration )\",\"formatter\":{\"id\":\"5b8c1014-7d13-4a93-9b6d-5eb0d690ed78\",\"type\":\"BasicTickFormatter\"},\"plot\":{\"id\":\"eb23d7c3-7716-4f40-8f24-4709a1c0ded1\",\"subtype\":\"Chart\",\"type\":\"Plot\"},\"ticker\":{\"id\":\"19e8aa02-90fc-4d3f-86b7-8f7d26d4d218\",\"type\":\"BasicTicker\"}},\"id\":\"cbb048fe-cd0f-4705-a062-3472481f1eb5\",\"type\":\"LinearAxis\"},{\"attributes\":{\"callback\":null,\"column_names\":[\"line_color\",\"line_alpha\",\"color\",\"fill_alpha\",\"height\",\"width\",\"y\",\"x\"],\"data\":{\"chart_index\":[{\"countries\":\"Gabon\"}],\"color\":[\"#586996\"],\"countries\":[\"Gabon\"],\"fill_alpha\":[0.8],\"height\":[219.75],\"line_alpha\":[1.0],\"line_color\":[\"white\"],\"width\":[0.8],\"x\":[\"Gabon\"],\"y\":[109.875]}},\"id\":\"ca2cdd0f-bac6-4af7-9176-b746b1788323\",\"type\":\"ColumnDataSource\"},{\"attributes\":{\"data_source\":{\"id\":\"b2d18286-29b0-47f8-896c-6e93df436ad5\",\"type\":\"ColumnDataSource\"},\"glyph\":{\"id\":\"1f330582-1b4c-44d9-a107-248d1c58d718\",\"type\":\"Rect\"},\"hover_glyph\":null,\"nonselection_glyph\":null,\"selection_glyph\":null},\"id\":\"d4c847f3-fa2f-4d48-9b14-60e55e4f832c\",\"type\":\"GlyphRenderer\"},{\"attributes\":{\"data_source\":{\"id\":\"fa6542fb-49d9-464e-a4e8-a98f44e07af0\",\"type\":\"ColumnDataSource\"},\"glyph\":{\"id\":\"9461b6af-38c8-44ab-841e-5e18b60d3a39\",\"type\":\"Rect\"},\"hover_glyph\":null,\"nonselection_glyph\":null,\"selection_glyph\":null},\"id\":\"409725d1-e685-4da5-9809-1bdaf6fcaa30\",\"type\":\"GlyphRenderer\"},{\"attributes\":{\"overlay\":{\"id\":\"9ff23f18-4655-486a-bdab-e6e17280142b\",\"type\":\"BoxAnnotation\"},\"plot\":{\"id\":\"d7a3316b-8628-4ce7-87bb-2729fc49c2aa\",\"subtype\":\"Chart\",\"type\":\"Plot\"}},\"id\":\"593df09b-69ea-4fd0-8314-b86bc5284f2d\",\"type\":\"BoxZoomTool\"},{\"attributes\":{\"data_source\":{\"id\":\"89640d36-2845-4f0c-a796-1ebc2c2acddb\",\"type\":\"ColumnDataSource\"},\"glyph\":{\"id\":\"228d2300-ef92-46c6-8938-2ebf6092572e\",\"type\":\"Rect\"},\"hover_glyph\":null,\"nonselection_glyph\":null,\"selection_glyph\":null},\"id\":\"8cadb52c-c88c-437e-bdb2-960f8185e745\",\"type\":\"GlyphRenderer\"},{\"attributes\":{\"fill_alpha\":{\"field\":\"fill_alpha\"},\"fill_color\":{\"field\":\"color\"},\"height\":{\"field\":\"height\",\"units\":\"data\"},\"line_color\":{\"field\":\"line_color\"},\"width\":{\"field\":\"width\",\"units\":\"data\"},\"x\":{\"field\":\"x\"},\"y\":{\"field\":\"y\"}},\"id\":\"bcf7fb2a-de2f-4b29-9972-d2a99f7197c7\",\"type\":\"Rect\"},{\"attributes\":{},\"id\":\"d21faf53-ecd0-4189-8935-9689462d70f1\",\"type\":\"CategoricalTicker\"},{\"attributes\":{\"fill_alpha\":{\"field\":\"fill_alpha\"},\"fill_color\":{\"field\":\"color\"},\"height\":{\"field\":\"height\",\"units\":\"data\"},\"line_color\":{\"field\":\"line_color\"},\"width\":{\"field\":\"width\",\"units\":\"data\"},\"x\":{\"field\":\"x\"},\"y\":{\"field\":\"y\"}},\"id\":\"49577d93-30f4-4433-bc5e-489ce400765a\",\"type\":\"Rect\"},{\"attributes\":{\"data_source\":{\"id\":\"6088fc56-5bb5-4dc3-b4ac-8ce248601aae\",\"type\":\"ColumnDataSource\"},\"glyph\":{\"id\":\"026775b3-b120-4937-9d65-c004aa535248\",\"type\":\"Rect\"},\"hover_glyph\":null,\"nonselection_glyph\":null,\"selection_glyph\":null},\"id\":\"25de3daf-e917-4d1b-aa16-f66302978f69\",\"type\":\"GlyphRenderer\"},{\"attributes\":{},\"id\":\"0d259ae7-3c06-425c-b324-5418f0bab211\",\"type\":\"ToolEvents\"},{\"attributes\":{\"data_source\":{\"id\":\"72370c6d-2170-4b29-a7ab-3a65dcf1172b\",\"type\":\"ColumnDataSource\"},\"glyph\":{\"id\":\"c54ccd88-85a8-486e-a4b6-c024ab5ee781\",\"type\":\"Rect\"},\"hover_glyph\":null,\"nonselection_glyph\":null,\"selection_glyph\":null},\"id\":\"36e281c5-d6a5-4d56-998f-b543597d816c\",\"type\":\"GlyphRenderer\"},{\"attributes\":{\"bottom_units\":\"screen\",\"fill_alpha\":{\"value\":0.5},\"fill_color\":{\"value\":\"lightgrey\"},\"left_units\":\"screen\",\"level\":\"overlay\",\"line_alpha\":{\"value\":1.0},\"line_color\":{\"value\":\"black\"},\"line_dash\":[4,4],\"line_width\":{\"value\":2},\"plot\":null,\"render_mode\":\"css\",\"right_units\":\"screen\",\"top_units\":\"screen\"},\"id\":\"cfa1cc75-e9c2-4fac-b0df-55023a3a1286\",\"type\":\"BoxAnnotation\"},{\"attributes\":{\"data_source\":{\"id\":\"fdac95fc-ebce-4e09-82c5-b3a505196af6\",\"type\":\"ColumnDataSource\"},\"glyph\":{\"id\":\"122554bc-7141-4eea-ba6a-6e6345c87206\",\"type\":\"Rect\"},\"hover_glyph\":null,\"nonselection_glyph\":null,\"selection_glyph\":null},\"id\":\"0484c42f-91cf-412d-a87b-bdd21234371e\",\"type\":\"GlyphRenderer\"},{\"attributes\":{},\"id\":\"21af3dc2-1b64-4780-9145-8d6addaf7a3b\",\"type\":\"BasicTicker\"},{\"attributes\":{\"callback\":null,\"column_names\":[\"line_color\",\"line_alpha\",\"color\",\"fill_alpha\",\"height\",\"width\",\"y\",\"x\"],\"data\":{\"chart_index\":[{\"countries\":\"South Africa\"}],\"color\":[\"#3B6849\"],\"countries\":[\"South Africa\"],\"fill_alpha\":[0.8],\"height\":[1.0],\"line_alpha\":[1.0],\"line_color\":[\"white\"],\"width\":[0.8],\"x\":[\"South Africa\"],\"y\":[0.5]}},\"id\":\"12488e0c-48e6-4b09-8ddf-ff01ebd09071\",\"type\":\"ColumnDataSource\"},{\"attributes\":{},\"id\":\"7b65d05c-4614-4e92-a918-e6e898270147\",\"type\":\"CategoricalTicker\"},{\"attributes\":{\"fill_alpha\":{\"field\":\"fill_alpha\"},\"fill_color\":{\"field\":\"color\"},\"height\":{\"field\":\"height\",\"units\":\"data\"},\"line_color\":{\"field\":\"line_color\"},\"width\":{\"field\":\"width\",\"units\":\"data\"},\"x\":{\"field\":\"x\"},\"y\":{\"field\":\"y\"}},\"id\":\"0776decb-22f9-4a45-8a7c-17a9107baf08\",\"type\":\"Rect\"},{\"attributes\":{\"callback\":null,\"column_names\":[\"line_color\",\"line_alpha\",\"color\",\"fill_alpha\",\"height\",\"width\",\"y\",\"x\"],\"data\":{\"chart_index\":[{\"ebola virus subtypes\":\"Bundibugyo virus\"}],\"color\":[\"#E2AE7A\"],\"ebola virus subtypes\":[\"Bundibugyo virus\"],\"fill_alpha\":[0.8],\"height\":[2.0],\"line_alpha\":[1.0],\"line_color\":[\"white\"],\"width\":[0.5],\"x\":[\"Bundibugyo virus\"],\"y\":[1.0]}},\"id\":\"d4e507e1-3736-4c4f-bc71-de51c5e52612\",\"type\":\"ColumnDataSource\"},{\"attributes\":{\"dimension\":1,\"plot\":{\"id\":\"eb23d7c3-7716-4f40-8f24-4709a1c0ded1\",\"subtype\":\"Chart\",\"type\":\"Plot\"},\"ticker\":{\"id\":\"19e8aa02-90fc-4d3f-86b7-8f7d26d4d218\",\"type\":\"BasicTicker\"}},\"id\":\"2cef4a0f-3757-42a2-8b84-7b00dae2ed57\",\"type\":\"Grid\"},{\"attributes\":{\"plot\":{\"id\":\"d7a3316b-8628-4ce7-87bb-2729fc49c2aa\",\"subtype\":\"Chart\",\"type\":\"Plot\"}},\"id\":\"50adf6db-f9c1-4041-80a1-fbef10e05189\",\"type\":\"HelpTool\"},{\"attributes\":{\"bottom_units\":\"screen\",\"fill_alpha\":{\"value\":0.5},\"fill_color\":{\"value\":\"lightgrey\"},\"left_units\":\"screen\",\"level\":\"overlay\",\"line_alpha\":{\"value\":1.0},\"line_color\":{\"value\":\"black\"},\"line_dash\":[4,4],\"line_width\":{\"value\":2},\"plot\":null,\"render_mode\":\"css\",\"right_units\":\"screen\",\"top_units\":\"screen\"},\"id\":\"87b31845-0962-4b87-b25b-995b58e9cac9\",\"type\":\"BoxAnnotation\"},{\"attributes\":{\"plot\":{\"id\":\"eb23d7c3-7716-4f40-8f24-4709a1c0ded1\",\"subtype\":\"Chart\",\"type\":\"Plot\"}},\"id\":\"e647a8ea-0b2c-46ca-ada2-75dfb7558a60\",\"type\":\"PreviewSaveTool\"},{\"attributes\":{},\"id\":\"afc6e9e0-c418-420d-9d25-92d7617fcc2b\",\"type\":\"CategoricalTickFormatter\"},{\"attributes\":{\"fill_alpha\":{\"field\":\"fill_alpha\"},\"fill_color\":{\"field\":\"color\"},\"height\":{\"field\":\"height\",\"units\":\"data\"},\"line_color\":{\"field\":\"line_color\"},\"width\":{\"field\":\"width\",\"units\":\"data\"},\"x\":{\"field\":\"x\"},\"y\":{\"field\":\"y\"}},\"id\":\"c54ccd88-85a8-486e-a4b6-c024ab5ee781\",\"type\":\"Rect\"},{\"attributes\":{\"axis_label\":\"Sum( Number Of Ebola Outbreaks )\",\"formatter\":{\"id\":\"239a8e0e-8417-4a30-b498-e4d1540fdd1e\",\"type\":\"BasicTickFormatter\"},\"plot\":{\"id\":\"d7a3316b-8628-4ce7-87bb-2729fc49c2aa\",\"subtype\":\"Chart\",\"type\":\"Plot\"},\"ticker\":{\"id\":\"21af3dc2-1b64-4780-9145-8d6addaf7a3b\",\"type\":\"BasicTicker\"}},\"id\":\"7b6169c4-b3cc-4201-bcc5-2231553844e9\",\"type\":\"LinearAxis\"},{\"attributes\":{\"fill_alpha\":{\"field\":\"fill_alpha\"},\"fill_color\":{\"field\":\"color\"},\"height\":{\"field\":\"height\",\"units\":\"data\"},\"line_color\":{\"field\":\"line_color\"},\"width\":{\"field\":\"width\",\"units\":\"data\"},\"x\":{\"field\":\"x\"},\"y\":{\"field\":\"y\"}},\"id\":\"7996017b-e644-4d75-8ed7-886daced4826\",\"type\":\"Rect\"},{\"attributes\":{\"data_source\":{\"id\":\"51121649-e91c-46a2-a352-2ebd7042c095\",\"type\":\"ColumnDataSource\"},\"glyph\":{\"id\":\"7e68d085-5f37-448b-9198-c10cf808c374\",\"type\":\"Rect\"},\"hover_glyph\":null,\"nonselection_glyph\":null,\"selection_glyph\":null},\"id\":\"d01eff0d-8eba-4f11-9dfe-a1547b11f0a9\",\"type\":\"GlyphRenderer\"},{\"attributes\":{\"fill_alpha\":{\"field\":\"fill_alpha\"},\"fill_color\":{\"field\":\"color\"},\"height\":{\"field\":\"height\",\"units\":\"data\"},\"line_color\":{\"field\":\"line_color\"},\"width\":{\"field\":\"width\",\"units\":\"data\"},\"x\":{\"field\":\"x\"},\"y\":{\"field\":\"y\"}},\"id\":\"6af968b4-8425-4a7a-81ff-7575ff63fde2\",\"type\":\"Rect\"},{\"attributes\":{\"data_source\":{\"id\":\"d4e507e1-3736-4c4f-bc71-de51c5e52612\",\"type\":\"ColumnDataSource\"},\"glyph\":{\"id\":\"9e28e433-f91f-4b93-92ad-16ead15ee882\",\"type\":\"Rect\"},\"hover_glyph\":null,\"nonselection_glyph\":null,\"selection_glyph\":null},\"id\":\"fb267465-8438-409a-a5ec-b3ec817bbbe2\",\"type\":\"GlyphRenderer\"},{\"attributes\":{},\"id\":\"19e8aa02-90fc-4d3f-86b7-8f7d26d4d218\",\"type\":\"BasicTicker\"},{\"attributes\":{},\"id\":\"b4e32f55-23ee-4efa-830e-a7c22d6607fd\",\"type\":\"CategoricalTickFormatter\"},{\"attributes\":{\"callback\":null,\"end\":9.45},\"id\":\"2761e5d2-572c-48d9-ba53-3748a3c4e418\",\"type\":\"Range1d\"},{\"attributes\":{\"fill_alpha\":{\"field\":\"fill_alpha\"},\"fill_color\":{\"field\":\"color\"},\"height\":{\"field\":\"height\",\"units\":\"data\"},\"line_color\":{\"field\":\"line_color\"},\"width\":{\"field\":\"width\",\"units\":\"data\"},\"x\":{\"field\":\"x\"},\"y\":{\"field\":\"y\"}},\"id\":\"c33250e9-2a05-46ec-a25c-033494370b99\",\"type\":\"Rect\"},{\"attributes\":{\"callback\":null,\"column_names\":[\"line_color\",\"line_alpha\",\"color\",\"fill_alpha\",\"height\",\"width\",\"y\",\"x\"],\"data\":{\"chart_index\":[{\"countries\":\"Philippines\"}],\"color\":[\"#586996\"],\"countries\":[\"Philippines\"],\"fill_alpha\":[0.8],\"height\":[364.6666666666667],\"line_alpha\":[1.0],\"line_color\":[\"white\"],\"width\":[0.8],\"x\":[\"Philippines\"],\"y\":[182.33333333333334]}},\"id\":\"4c75c3fd-3a11-45b7-a0ec-b5b8e121e944\",\"type\":\"ColumnDataSource\"},{\"attributes\":{\"overlay\":{\"id\":\"87b31845-0962-4b87-b25b-995b58e9cac9\",\"type\":\"BoxAnnotation\"},\"plot\":{\"id\":\"0c398e84-c441-4680-a2f7-9ddb213de414\",\"subtype\":\"Chart\",\"type\":\"Plot\"}},\"id\":\"04dcce2e-f061-46c5-8cb1-4dd63737f972\",\"type\":\"BoxZoomTool\"},{\"attributes\":{\"plot\":{\"id\":\"0c398e84-c441-4680-a2f7-9ddb213de414\",\"subtype\":\"Chart\",\"type\":\"Plot\"}},\"id\":\"f1c9df67-3535-434e-9a2c-8449fa7316c8\",\"type\":\"PreviewSaveTool\"},{\"attributes\":{},\"id\":\"5b8c1014-7d13-4a93-9b6d-5eb0d690ed78\",\"type\":\"BasicTickFormatter\"},{\"attributes\":{\"bottom_units\":\"screen\",\"fill_alpha\":{\"value\":0.5},\"fill_color\":{\"value\":\"lightgrey\"},\"left_units\":\"screen\",\"level\":\"overlay\",\"line_alpha\":{\"value\":1.0},\"line_color\":{\"value\":\"black\"},\"line_dash\":[4,4],\"line_width\":{\"value\":2},\"plot\":null,\"render_mode\":\"css\",\"right_units\":\"screen\",\"top_units\":\"screen\"},\"id\":\"9ff23f18-4655-486a-bdab-e6e17280142b\",\"type\":\"BoxAnnotation\"},{\"attributes\":{\"callback\":null,\"column_names\":[\"line_color\",\"line_alpha\",\"color\",\"fill_alpha\",\"height\",\"width\",\"y\",\"x\"],\"data\":{\"chart_index\":[{\"countries\":\"Democratic Republic of the Congo\"}],\"color\":[\"#3B6849\"],\"countries\":[\"Democratic Republic of the Congo\"],\"fill_alpha\":[0.8],\"height\":[9.0],\"line_alpha\":[1.0],\"line_color\":[\"white\"],\"width\":[0.8],\"x\":[\"Democratic Republic of the Congo\"],\"y\":[4.5]}},\"id\":\"b912ae67-b752-429f-af5c-83e297de87a4\",\"type\":\"ColumnDataSource\"},{\"attributes\":{},\"id\":\"239a8e0e-8417-4a30-b498-e4d1540fdd1e\",\"type\":\"BasicTickFormatter\"},{\"attributes\":{\"callback\":null,\"column_names\":[\"line_color\",\"line_alpha\",\"color\",\"fill_alpha\",\"height\",\"width\",\"y\",\"x\"],\"data\":{\"chart_index\":[{\"countries\":\"Sudan (South Sudan)\"}],\"color\":[\"#586996\"],\"countries\":[\"Sudan (South Sudan)\"],\"fill_alpha\":[0.8],\"height\":[364.6666666666667],\"line_alpha\":[1.0],\"line_color\":[\"white\"],\"width\":[0.8],\"x\":[\"Sudan (South Sudan)\"],\"y\":[182.33333333333334]}},\"id\":\"6d0644f0-5fa2-44c1-97d1-829d0ed62ef4\",\"type\":\"ColumnDataSource\"},{\"attributes\":{\"fill_alpha\":{\"field\":\"fill_alpha\"},\"fill_color\":{\"field\":\"color\"},\"height\":{\"field\":\"height\",\"units\":\"data\"},\"line_color\":{\"field\":\"line_color\"},\"width\":{\"field\":\"width\",\"units\":\"data\"},\"x\":{\"field\":\"x\"},\"y\":{\"field\":\"y\"}},\"id\":\"7e68d085-5f37-448b-9198-c10cf808c374\",\"type\":\"Rect\"},{\"attributes\":{\"data_source\":{\"id\":\"6d0644f0-5fa2-44c1-97d1-829d0ed62ef4\",\"type\":\"ColumnDataSource\"},\"glyph\":{\"id\":\"f09062fc-579e-465d-b88a-f2c382aee2ce\",\"type\":\"Rect\"},\"hover_glyph\":null,\"nonselection_glyph\":null,\"selection_glyph\":null},\"id\":\"f960ac6c-cb7c-4a58-88d4-93a5fb32f9f8\",\"type\":\"GlyphRenderer\"},{\"attributes\":{\"data_source\":{\"id\":\"400b876d-fc1a-4c11-8fd4-0609ac551be6\",\"type\":\"ColumnDataSource\"},\"glyph\":{\"id\":\"40430576-60bc-490d-b944-8c236e3f39e5\",\"type\":\"Rect\"},\"hover_glyph\":null,\"nonselection_glyph\":null,\"selection_glyph\":null},\"id\":\"654d3a18-98b6-4998-8d6f-a82f507ac631\",\"type\":\"GlyphRenderer\"},{\"attributes\":{\"fill_alpha\":{\"field\":\"fill_alpha\"},\"fill_color\":{\"field\":\"color\"},\"height\":{\"field\":\"height\",\"units\":\"data\"},\"line_color\":{\"field\":\"line_color\"},\"width\":{\"field\":\"width\",\"units\":\"data\"},\"x\":{\"field\":\"x\"},\"y\":{\"field\":\"y\"}},\"id\":\"ef44f399-caee-47f1-aa67-2ff48c8a74ab\",\"type\":\"Rect\"},{\"attributes\":{\"data_source\":{\"id\":\"1edf5fa4-c96a-457d-8a4a-1ec5be89f931\",\"type\":\"ColumnDataSource\"},\"glyph\":{\"id\":\"7b1ee0af-c34c-4e89-b816-aecf518de4ca\",\"type\":\"Rect\"},\"hover_glyph\":null,\"nonselection_glyph\":null,\"selection_glyph\":null},\"id\":\"6724b000-953b-46af-9acf-1e4796445918\",\"type\":\"GlyphRenderer\"},{\"attributes\":{\"data_source\":{\"id\":\"cc004ff9-27a2-4159-b3b9-dfdac7641bf5\",\"type\":\"ColumnDataSource\"},\"glyph\":{\"id\":\"5703cce9-2f3f-44ee-9577-3f90bd6e8c11\",\"type\":\"Rect\"},\"hover_glyph\":null,\"nonselection_glyph\":null,\"selection_glyph\":null},\"id\":\"65bad2bb-cc08-41c7-806d-f2f404451be4\",\"type\":\"GlyphRenderer\"},{\"attributes\":{\"data_source\":{\"id\":\"da1303b3-e764-4f93-af00-dc86d04bc4fb\",\"type\":\"ColumnDataSource\"},\"glyph\":{\"id\":\"bcf7fb2a-de2f-4b29-9972-d2a99f7197c7\",\"type\":\"Rect\"},\"hover_glyph\":null,\"nonselection_glyph\":null,\"selection_glyph\":null},\"id\":\"34f1bfc3-9f1d-4638-bbec-dbc3bfa67c23\",\"type\":\"GlyphRenderer\"},{\"attributes\":{\"plot\":{\"id\":\"eb23d7c3-7716-4f40-8f24-4709a1c0ded1\",\"subtype\":\"Chart\",\"type\":\"Plot\"}},\"id\":\"a4811312-1260-472d-a9c7-fce947c92c43\",\"type\":\"ResetTool\"},{\"attributes\":{\"fill_alpha\":{\"field\":\"fill_alpha\"},\"fill_color\":{\"field\":\"color\"},\"height\":{\"field\":\"height\",\"units\":\"data\"},\"line_color\":{\"field\":\"line_color\"},\"width\":{\"field\":\"width\",\"units\":\"data\"},\"x\":{\"field\":\"x\"},\"y\":{\"field\":\"y\"}},\"id\":\"14e86f15-1829-4db1-af39-41470aa1d497\",\"type\":\"Rect\"},{\"attributes\":{\"fill_alpha\":{\"field\":\"fill_alpha\"},\"fill_color\":{\"field\":\"color\"},\"height\":{\"field\":\"height\",\"units\":\"data\"},\"line_color\":{\"field\":\"line_color\"},\"width\":{\"field\":\"width\",\"units\":\"data\"},\"x\":{\"field\":\"x\"},\"y\":{\"field\":\"y\"}},\"id\":\"93f90d73-cd13-4692-a927-bec382ca499a\",\"type\":\"Rect\"},{\"attributes\":{\"below\":[{\"id\":\"8c1c3511-ac5b-48f2-8353-f4d6c91f524e\",\"type\":\"CategoricalAxis\"}],\"left\":[{\"id\":\"8b36f1d3-d77d-4939-ae4a-38cda261844b\",\"type\":\"LinearAxis\"}],\"legend\":null,\"plot_height\":500,\"renderers\":[{\"id\":\"87b31845-0962-4b87-b25b-995b58e9cac9\",\"type\":\"BoxAnnotation\"},{\"id\":\"25de3daf-e917-4d1b-aa16-f66302978f69\",\"type\":\"GlyphRenderer\"},{\"id\":\"62c83548-d747-4450-964a-8a2dbb892164\",\"type\":\"GlyphRenderer\"},{\"id\":\"747f0f49-f15d-45e3-993a-9d6210c05add\",\"type\":\"GlyphRenderer\"},{\"id\":\"7972b4b4-5aba-4b8d-ac0d-fd6c7ef4853d\",\"type\":\"GlyphRenderer\"},{\"id\":\"c72597ae-66d4-4466-b0c2-75b9cc4799fc\",\"type\":\"GlyphRenderer\"},{\"id\":\"65bad2bb-cc08-41c7-806d-f2f404451be4\",\"type\":\"GlyphRenderer\"},{\"id\":\"a95dbc62-b568-424e-ba42-7f1de73f3aa5\",\"type\":\"GlyphRenderer\"},{\"id\":\"6ec359e5-7361-4ce3-a2f1-3a8fc36a73fb\",\"type\":\"GlyphRenderer\"},{\"id\":\"07c6b215-b12e-4c8e-9b87-cbb6a678b1a6\",\"type\":\"GlyphRenderer\"},{\"id\":\"36e281c5-d6a5-4d56-998f-b543597d816c\",\"type\":\"GlyphRenderer\"},{\"id\":\"8cadb52c-c88c-437e-bdb2-960f8185e745\",\"type\":\"GlyphRenderer\"},{\"id\":\"8c1c3511-ac5b-48f2-8353-f4d6c91f524e\",\"type\":\"CategoricalAxis\"},{\"id\":\"8b36f1d3-d77d-4939-ae4a-38cda261844b\",\"type\":\"LinearAxis\"},{\"id\":\"4c8798c9-59c8-43c7-bec6-52506eefa80d\",\"type\":\"Grid\"}],\"title\":\"Number of ebola outbreak(s) per country\",\"title_text_font_size\":{\"value\":\"14pt\"},\"tool_events\":{\"id\":\"567eeed8-9e1f-4d93-89d9-bac995d3ef90\",\"type\":\"ToolEvents\"},\"tools\":[{\"id\":\"61bc9097-9862-4946-bc4d-648d9711ba07\",\"type\":\"PanTool\"},{\"id\":\"f32d348b-76de-4952-a909-4589b790122e\",\"type\":\"WheelZoomTool\"},{\"id\":\"04dcce2e-f061-46c5-8cb1-4dd63737f972\",\"type\":\"BoxZoomTool\"},{\"id\":\"f1c9df67-3535-434e-9a2c-8449fa7316c8\",\"type\":\"PreviewSaveTool\"},{\"id\":\"8c2aad38-a44e-495a-9813-4625c3be5411\",\"type\":\"ResizeTool\"},{\"id\":\"9f4afb10-4633-47c9-a20f-2375eb358250\",\"type\":\"ResetTool\"},{\"id\":\"eafc2203-590d-4478-b4cc-83697cf75909\",\"type\":\"HelpTool\"}],\"x_mapper_type\":\"auto\",\"x_range\":{\"id\":\"c8868e49-b729-4471-ae69-6fcfc6eb6814\",\"type\":\"FactorRange\"},\"xgrid\":false,\"xscale\":\"auto\",\"y_mapper_type\":\"auto\",\"y_range\":{\"id\":\"2761e5d2-572c-48d9-ba53-3748a3c4e418\",\"type\":\"Range1d\"},\"yscale\":\"auto\"},\"id\":\"0c398e84-c441-4680-a2f7-9ddb213de414\",\"subtype\":\"Chart\",\"type\":\"Plot\"},{\"attributes\":{\"callback\":null,\"column_names\":[\"line_color\",\"line_alpha\",\"color\",\"fill_alpha\",\"height\",\"width\",\"y\",\"x\"],\"data\":{\"chart_index\":[{\"ebola virus subtypes\":\"Zaire virus\"}],\"color\":[\"#E2AE7A\"],\"ebola virus subtypes\":[\"Zaire virus\"],\"fill_alpha\":[0.8],\"height\":[15.0],\"line_alpha\":[1.0],\"line_color\":[\"white\"],\"width\":[0.5],\"x\":[\"Zaire virus\"],\"y\":[7.5]}},\"id\":\"75049e3e-f3d9-47ba-bef0-cbc90c285e39\",\"type\":\"ColumnDataSource\"},{\"attributes\":{\"dimension\":1,\"plot\":{\"id\":\"0c398e84-c441-4680-a2f7-9ddb213de414\",\"subtype\":\"Chart\",\"type\":\"Plot\"},\"ticker\":{\"id\":\"847084a4-9061-40b7-859f-48b8e987401d\",\"type\":\"BasicTicker\"}},\"id\":\"4c8798c9-59c8-43c7-bec6-52506eefa80d\",\"type\":\"Grid\"},{\"attributes\":{\"callback\":null,\"column_names\":[\"line_color\",\"line_alpha\",\"color\",\"fill_alpha\",\"height\",\"width\",\"y\",\"x\"],\"data\":{\"chart_index\":[{\"countries\":\"Gabon\"}],\"color\":[\"#3B6849\"],\"countries\":[\"Gabon\"],\"fill_alpha\":[0.8],\"height\":[4.0],\"line_alpha\":[1.0],\"line_color\":[\"white\"],\"width\":[0.8],\"x\":[\"Gabon\"],\"y\":[2.0]}},\"id\":\"4c4b9425-2bd6-4086-b4a9-0256694da5f8\",\"type\":\"ColumnDataSource\"},{\"attributes\":{\"data_source\":{\"id\":\"02a874dc-3b2f-458f-94e6-bd271ac51c89\",\"type\":\"ColumnDataSource\"},\"glyph\":{\"id\":\"93f90d73-cd13-4692-a927-bec382ca499a\",\"type\":\"Rect\"},\"hover_glyph\":null,\"nonselection_glyph\":null,\"selection_glyph\":null},\"id\":\"a95dbc62-b568-424e-ba42-7f1de73f3aa5\",\"type\":\"GlyphRenderer\"},{\"attributes\":{\"fill_alpha\":{\"field\":\"fill_alpha\"},\"fill_color\":{\"field\":\"color\"},\"height\":{\"field\":\"height\",\"units\":\"data\"},\"line_color\":{\"field\":\"line_color\"},\"width\":{\"field\":\"width\",\"units\":\"data\"},\"x\":{\"field\":\"x\"},\"y\":{\"field\":\"y\"}},\"id\":\"026775b3-b120-4937-9d65-c004aa535248\",\"type\":\"Rect\"},{\"attributes\":{\"plot\":{\"id\":\"d7a3316b-8628-4ce7-87bb-2729fc49c2aa\",\"subtype\":\"Chart\",\"type\":\"Plot\"}},\"id\":\"a2f45ca7-fec6-46d4-9afc-938b8dbc9bbb\",\"type\":\"PreviewSaveTool\"},{\"attributes\":{\"callback\":null,\"end\":15.75},\"id\":\"0a73a1b5-75b8-4c20-afc0-a0319b3c1abf\",\"type\":\"Range1d\"},{\"attributes\":{\"callback\":null,\"column_names\":[\"line_color\",\"line_alpha\",\"color\",\"fill_alpha\",\"height\",\"width\",\"y\",\"x\"],\"data\":{\"chart_index\":[{\"countries\":\"Russia\"}],\"color\":[\"#586996\"],\"countries\":[\"Russia\"],\"fill_alpha\":[0.8],\"height\":[365.0],\"line_alpha\":[1.0],\"line_color\":[\"white\"],\"width\":[0.8],\"x\":[\"Russia\"],\"y\":[182.5]}},\"id\":\"f1f5f303-d753-4bac-b434-efee3ee3f215\",\"type\":\"ColumnDataSource\"},{\"attributes\":{\"callback\":null,\"column_names\":[\"line_color\",\"line_alpha\",\"color\",\"fill_alpha\",\"height\",\"width\",\"y\",\"x\"],\"data\":{\"chart_index\":[{\"countries\":\"South Africa\"}],\"color\":[\"#586996\"],\"countries\":[\"South Africa\"],\"fill_alpha\":[0.8],\"height\":[365.0],\"line_alpha\":[1.0],\"line_color\":[\"white\"],\"width\":[0.8],\"x\":[\"South Africa\"],\"y\":[182.5]}},\"id\":\"fdac95fc-ebce-4e09-82c5-b3a505196af6\",\"type\":\"ColumnDataSource\"},{\"attributes\":{\"fill_alpha\":{\"field\":\"fill_alpha\"},\"fill_color\":{\"field\":\"color\"},\"height\":{\"field\":\"height\",\"units\":\"data\"},\"line_color\":{\"field\":\"line_color\"},\"width\":{\"field\":\"width\",\"units\":\"data\"},\"x\":{\"field\":\"x\"},\"y\":{\"field\":\"y\"}},\"id\":\"5703cce9-2f3f-44ee-9577-3f90bd6e8c11\",\"type\":\"Rect\"},{\"attributes\":{\"callback\":null,\"column_names\":[\"line_color\",\"line_alpha\",\"color\",\"fill_alpha\",\"height\",\"width\",\"y\",\"x\"],\"data\":{\"chart_index\":[{\"countries\":\"Democratic Republic of the Congo\"}],\"color\":[\"#586996\"],\"countries\":[\"Democratic Republic of the Congo\"],\"fill_alpha\":[0.8],\"height\":[235.44444444444446],\"line_alpha\":[1.0],\"line_color\":[\"white\"],\"width\":[0.8],\"x\":[\"Democratic Republic of the Congo\"],\"y\":[117.72222222222223]}},\"id\":\"0b9effc5-c6dd-4eee-8809-156064adfbd5\",\"type\":\"ColumnDataSource\"},{\"attributes\":{\"callback\":null,\"factors\":[\"Cote d'Ivoire (Ivory Coast)\",\"Democratic Republic of the Congo\",\"England\",\"Gabon\",\"Italy\",\"Philippines\",\"Russia\",\"South Africa\",\"Sudan (South Sudan)\",\"USA\",\"Uganda\"]},\"id\":\"c8868e49-b729-4471-ae69-6fcfc6eb6814\",\"type\":\"FactorRange\"},{\"attributes\":{\"callback\":null,\"column_names\":[\"line_color\",\"line_alpha\",\"color\",\"fill_alpha\",\"height\",\"width\",\"y\",\"x\"],\"data\":{\"chart_index\":[{\"ebola virus subtypes\":\"Sudan virus\"}],\"color\":[\"#E2AE7A\"],\"ebola virus subtypes\":[\"Sudan virus\"],\"fill_alpha\":[0.8],\"height\":[8.0],\"line_alpha\":[1.0],\"line_color\":[\"white\"],\"width\":[0.5],\"x\":[\"Sudan virus\"],\"y\":[4.0]}},\"id\":\"fa6542fb-49d9-464e-a4e8-a98f44e07af0\",\"type\":\"ColumnDataSource\"},{\"attributes\":{\"data_source\":{\"id\":\"12488e0c-48e6-4b09-8ddf-ff01ebd09071\",\"type\":\"ColumnDataSource\"},\"glyph\":{\"id\":\"ef44f399-caee-47f1-aa67-2ff48c8a74ab\",\"type\":\"Rect\"},\"hover_glyph\":null,\"nonselection_glyph\":null,\"selection_glyph\":null},\"id\":\"6ec359e5-7361-4ce3-a2f1-3a8fc36a73fb\",\"type\":\"GlyphRenderer\"},{\"attributes\":{\"axis_label\":\"Sum( Ebola Outbreaks )\",\"formatter\":{\"id\":\"a418eb99-7c34-40d5-8103-8c86191ddd5f\",\"type\":\"BasicTickFormatter\"},\"plot\":{\"id\":\"0c398e84-c441-4680-a2f7-9ddb213de414\",\"subtype\":\"Chart\",\"type\":\"Plot\"},\"ticker\":{\"id\":\"847084a4-9061-40b7-859f-48b8e987401d\",\"type\":\"BasicTicker\"}},\"id\":\"8b36f1d3-d77d-4939-ae4a-38cda261844b\",\"type\":\"LinearAxis\"},{\"attributes\":{\"plot\":{\"id\":\"0c398e84-c441-4680-a2f7-9ddb213de414\",\"subtype\":\"Chart\",\"type\":\"Plot\"}},\"id\":\"9f4afb10-4633-47c9-a20f-2375eb358250\",\"type\":\"ResetTool\"},{\"attributes\":{\"plot\":{\"id\":\"eb23d7c3-7716-4f40-8f24-4709a1c0ded1\",\"subtype\":\"Chart\",\"type\":\"Plot\"}},\"id\":\"7cb611ab-da3d-43b0-8317-ba216bd8e6d4\",\"type\":\"ResizeTool\"},{\"attributes\":{\"dimension\":1,\"plot\":{\"id\":\"d7a3316b-8628-4ce7-87bb-2729fc49c2aa\",\"subtype\":\"Chart\",\"type\":\"Plot\"},\"ticker\":{\"id\":\"21af3dc2-1b64-4780-9145-8d6addaf7a3b\",\"type\":\"BasicTicker\"}},\"id\":\"ac715791-0f78-42ab-8ba5-dde6b8a84805\",\"type\":\"Grid\"},{\"attributes\":{\"data_source\":{\"id\":\"f1f5f303-d753-4bac-b434-efee3ee3f215\",\"type\":\"ColumnDataSource\"},\"glyph\":{\"id\":\"c33250e9-2a05-46ec-a25c-033494370b99\",\"type\":\"Rect\"},\"hover_glyph\":null,\"nonselection_glyph\":null,\"selection_glyph\":null},\"id\":\"60490201-6c1f-4d4b-a6f1-38e609fa813e\",\"type\":\"GlyphRenderer\"},{\"attributes\":{\"data_source\":{\"id\":\"0b9effc5-c6dd-4eee-8809-156064adfbd5\",\"type\":\"ColumnDataSource\"},\"glyph\":{\"id\":\"80fa5307-43d3-44ae-b62b-67119ed05e5f\",\"type\":\"Rect\"},\"hover_glyph\":null,\"nonselection_glyph\":null,\"selection_glyph\":null},\"id\":\"6cd18915-14cf-42b4-aba6-02d45f0da891\",\"type\":\"GlyphRenderer\"},{\"attributes\":{\"data_source\":{\"id\":\"ca2cdd0f-bac6-4af7-9176-b746b1788323\",\"type\":\"ColumnDataSource\"},\"glyph\":{\"id\":\"0776decb-22f9-4a45-8a7c-17a9107baf08\",\"type\":\"Rect\"},\"hover_glyph\":null,\"nonselection_glyph\":null,\"selection_glyph\":null},\"id\":\"a135dce8-bc91-4e75-9ec7-433e01709d8d\",\"type\":\"GlyphRenderer\"},{\"attributes\":{\"fill_alpha\":{\"field\":\"fill_alpha\"},\"fill_color\":{\"field\":\"color\"},\"height\":{\"field\":\"height\",\"units\":\"data\"},\"line_color\":{\"field\":\"line_color\"},\"width\":{\"field\":\"width\",\"units\":\"data\"},\"x\":{\"field\":\"x\"},\"y\":{\"field\":\"y\"}},\"id\":\"122554bc-7141-4eea-ba6a-6e6345c87206\",\"type\":\"Rect\"},{\"attributes\":{\"plot\":{\"id\":\"eb23d7c3-7716-4f40-8f24-4709a1c0ded1\",\"subtype\":\"Chart\",\"type\":\"Plot\"}},\"id\":\"5f9f2893-cd04-48db-8d74-b4ddc885257b\",\"type\":\"WheelZoomTool\"},{\"attributes\":{\"callback\":null,\"column_names\":[\"line_color\",\"line_alpha\",\"color\",\"fill_alpha\",\"height\",\"width\",\"y\",\"x\"],\"data\":{\"chart_index\":[{\"countries\":\"Uganda\"}],\"color\":[\"#3B6849\"],\"countries\":[\"Uganda\"],\"fill_alpha\":[0.8],\"height\":[5.0],\"line_alpha\":[1.0],\"line_color\":[\"white\"],\"width\":[0.8],\"x\":[\"Uganda\"],\"y\":[2.5]}},\"id\":\"cc004ff9-27a2-4159-b3b9-dfdac7641bf5\",\"type\":\"ColumnDataSource\"},{\"attributes\":{\"fill_alpha\":{\"field\":\"fill_alpha\"},\"fill_color\":{\"field\":\"color\"},\"height\":{\"field\":\"height\",\"units\":\"data\"},\"line_color\":{\"field\":\"line_color\"},\"width\":{\"field\":\"width\",\"units\":\"data\"},\"x\":{\"field\":\"x\"},\"y\":{\"field\":\"y\"}},\"id\":\"6f0fca46-a106-4fe9-af8b-4eb259e55e39\",\"type\":\"Rect\"},{\"attributes\":{\"callback\":null,\"column_names\":[\"line_color\",\"line_alpha\",\"color\",\"fill_alpha\",\"height\",\"width\",\"y\",\"x\"],\"data\":{\"chart_index\":[{\"countries\":\"England\"}],\"color\":[\"#586996\"],\"countries\":[\"England\"],\"fill_alpha\":[0.8],\"height\":[365.0],\"line_alpha\":[1.0],\"line_color\":[\"white\"],\"width\":[0.8],\"x\":[\"England\"],\"y\":[182.5]}},\"id\":\"1edf5fa4-c96a-457d-8a4a-1ec5be89f931\",\"type\":\"ColumnDataSource\"},{\"attributes\":{\"plot\":{\"id\":\"eb23d7c3-7716-4f40-8f24-4709a1c0ded1\",\"subtype\":\"Chart\",\"type\":\"Plot\"}},\"id\":\"f182e77e-42a5-4ea9-83cf-cf47fbe6ac86\",\"type\":\"PanTool\"},{\"attributes\":{\"data_source\":{\"id\":\"75049e3e-f3d9-47ba-bef0-cbc90c285e39\",\"type\":\"ColumnDataSource\"},\"glyph\":{\"id\":\"7996017b-e644-4d75-8ed7-886daced4826\",\"type\":\"Rect\"},\"hover_glyph\":null,\"nonselection_glyph\":null,\"selection_glyph\":null},\"id\":\"668cc513-8aa6-4cf9-a553-bf1ac292082e\",\"type\":\"GlyphRenderer\"}],\"root_ids\":[\"0c398e84-c441-4680-a2f7-9ddb213de414\",\"eb23d7c3-7716-4f40-8f24-4709a1c0ded1\",\"d7a3316b-8628-4ce7-87bb-2729fc49c2aa\"]},\"title\":\"Bokeh Application\",\"version\":\"0.11.1\"}};\n",
       "            var render_items = [{\"docid\":\"461b8b4f-bcfa-44be-b35f-cbd99214b4dd\",\"elementid\":\"6539dc47-0a8f-4ef7-9c07-e884826605f4\",\"modelid\":\"d7a3316b-8628-4ce7-87bb-2729fc49c2aa\",\"notebook_comms_target\":\"844036f0-24ed-4201-bd55-3edecc173198\"}];\n",
       "            \n",
       "            Bokeh.embed.embed_items(docs_json, render_items);\n",
       "        });\n",
       "      },\n",
       "      function(Bokeh) {\n",
       "      }\n",
       "    ];\n",
       "  \n",
       "    function run_inline_js() {\n",
       "      for (var i = 0; i < inline_js.length; i++) {\n",
       "        inline_js[i](window.Bokeh);\n",
       "      }\n",
       "    }\n",
       "  \n",
       "    if (window._bokeh_is_loading === 0) {\n",
       "      console.log(\"Bokeh: BokehJS loaded, going straight to plotting\");\n",
       "      run_inline_js();\n",
       "    } else {\n",
       "      load_libs(js_urls, function() {\n",
       "        console.log(\"Bokeh: BokehJS plotting callback run at\", now());\n",
       "        run_inline_js();\n",
       "      });\n",
       "    }\n",
       "  }(this));\n",
       "</script>"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "data": {
      "text/html": [
       "<p><code>&lt;Bokeh Notebook handle for <strong>In[11]</strong>&gt;</code></p>"
      ],
      "text/plain": [
       "<bokeh.io._CommsHandle at 0x7f3a01b29a50>"
      ]
     },
     "execution_count": 11,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "data_vir = {\n",
    "    'ebola virus subtypes': eb_virus_types,\n",
    "    'number of ebola outbreaks': [1] * len(eb_virus_types)\n",
    "}\n",
    "\n",
    "bar_vir = Bar(data_vir, values='number of ebola outbreaks', label='ebola virus subtypes', agg='sum', color=\"#E2AE7A\",\n",
    "              title=\"Number of ebola outbreak(s) per virus subtype\", plot_width=600, plot_height=400, bar_width=0.5)\n",
    "\n",
    "output_notebook()\n",
    "\n",
    "show(bar_vir)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 12,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>country_name</th>\n",
       "      <th>ebola_subtype</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>30</th>\n",
       "      <td>Côte d'Ivoire (Ivory Coast)</td>\n",
       "      <td>Taï Forest virus</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>16</th>\n",
       "      <td>Democratic Republic of the Congo</td>\n",
       "      <td>Zaire virus</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>18</th>\n",
       "      <td>Democratic Republic of the Congo</td>\n",
       "      <td>Zaire virus</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>17</th>\n",
       "      <td>Democratic Republic of the Congo</td>\n",
       "      <td>Zaire virus</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>15</th>\n",
       "      <td>Democratic Republic of the Congo</td>\n",
       "      <td>Bundibugyo virus</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>5</th>\n",
       "      <td>Democratic Republic of the Congo</td>\n",
       "      <td>Zaire virus</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>6</th>\n",
       "      <td>Democratic Republic of the Congo</td>\n",
       "      <td>Zaire virus</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>12</th>\n",
       "      <td>Democratic Republic of the Congo</td>\n",
       "      <td>Zaire virus</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>8</th>\n",
       "      <td>Democratic Republic of the Congo</td>\n",
       "      <td>Zaire virus</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>10</th>\n",
       "      <td>Democratic Republic of the Congo</td>\n",
       "      <td>Zaire virus</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>32</th>\n",
       "      <td>England</td>\n",
       "      <td>Sudan virus</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>13</th>\n",
       "      <td>Gabon</td>\n",
       "      <td>Zaire virus</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>Gabon</td>\n",
       "      <td>Zaire virus</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>20</th>\n",
       "      <td>Gabon</td>\n",
       "      <td>Zaire virus</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>23</th>\n",
       "      <td>Gabon</td>\n",
       "      <td>Zaire virus</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24</th>\n",
       "      <td>Italy</td>\n",
       "      <td>Reston virus</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>7</th>\n",
       "      <td>Philippines</td>\n",
       "      <td>Reston virus</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>14</th>\n",
       "      <td>Philippines</td>\n",
       "      <td>Reston virus</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>Philippines</td>\n",
       "      <td>Reston virus</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>Russia</td>\n",
       "      <td>Zaire virus</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>19</th>\n",
       "      <td>Russia</td>\n",
       "      <td>Zaire virus</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>27</th>\n",
       "      <td>South Africa</td>\n",
       "      <td>Zaire virus</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>31</th>\n",
       "      <td>Sudan (South Sudan)</td>\n",
       "      <td>Sudan virus</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>29</th>\n",
       "      <td>Sudan (South Sudan)</td>\n",
       "      <td>Sudan virus</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>28</th>\n",
       "      <td>Sudan (South Sudan)</td>\n",
       "      <td>Sudan virus</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>21</th>\n",
       "      <td>USA</td>\n",
       "      <td>Reston virus</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>USA</td>\n",
       "      <td>Reston virus</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>USA</td>\n",
       "      <td>Reston virus</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>26</th>\n",
       "      <td>Uganda</td>\n",
       "      <td>Sudan virus</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>22</th>\n",
       "      <td>Uganda</td>\n",
       "      <td>Bundibugyo virus</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>9</th>\n",
       "      <td>Uganda</td>\n",
       "      <td>Sudan virus</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>25</th>\n",
       "      <td>Uganda</td>\n",
       "      <td>Sudan virus</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>11</th>\n",
       "      <td>Uganda</td>\n",
       "      <td>Sudan virus</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "                        country_name     ebola_subtype\n",
       "30       Côte d'Ivoire (Ivory Coast)  Taï Forest virus\n",
       "16  Democratic Republic of the Congo       Zaire virus\n",
       "18  Democratic Republic of the Congo       Zaire virus\n",
       "17  Democratic Republic of the Congo       Zaire virus\n",
       "15  Democratic Republic of the Congo  Bundibugyo virus\n",
       "5   Democratic Republic of the Congo       Zaire virus\n",
       "6   Democratic Republic of the Congo       Zaire virus\n",
       "12  Democratic Republic of the Congo       Zaire virus\n",
       "8   Democratic Republic of the Congo       Zaire virus\n",
       "10  Democratic Republic of the Congo       Zaire virus\n",
       "32                           England       Sudan virus\n",
       "13                             Gabon       Zaire virus\n",
       "4                              Gabon       Zaire virus\n",
       "20                             Gabon       Zaire virus\n",
       "23                             Gabon       Zaire virus\n",
       "24                             Italy      Reston virus\n",
       "7                        Philippines      Reston virus\n",
       "14                       Philippines      Reston virus\n",
       "1                        Philippines      Reston virus\n",
       "0                             Russia       Zaire virus\n",
       "19                            Russia       Zaire virus\n",
       "27                      South Africa       Zaire virus\n",
       "31               Sudan (South Sudan)       Sudan virus\n",
       "29               Sudan (South Sudan)       Sudan virus\n",
       "28               Sudan (South Sudan)       Sudan virus\n",
       "21                               USA      Reston virus\n",
       "2                                USA      Reston virus\n",
       "3                                USA      Reston virus\n",
       "26                            Uganda       Sudan virus\n",
       "22                            Uganda  Bundibugyo virus\n",
       "9                             Uganda       Sudan virus\n",
       "25                            Uganda       Sudan virus\n",
       "11                            Uganda       Sudan virus"
      ]
     },
     "execution_count": 12,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "ebola_data[[\"country_name\", \"ebola_subtype\"]].sort([\"country_name\"])"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "### Duration of epidemy in days by virus subtype"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 13,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "data": {
      "text/plain": [
       "ebola_subtype\n",
       "Bundibugyo virus    121.500000\n",
       "Zaire virus         260.733333\n",
       "Sudan virus         304.000000\n",
       "Taï Forest virus    364.000000\n",
       "Reston virus        364.571429\n",
       "Name: duration_days, dtype: float64"
      ]
     },
     "execution_count": 13,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "ebola_data.groupby([\"ebola_subtype\"])[\"duration_days\"].mean().order()"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "__=> Bundibugyo virus seems to be correlated with shorter outbreaks__"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "### Human cases for DRC (country with the most cases)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 14,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>ebola_subtype</th>\n",
       "      <th>start_date</th>\n",
       "      <th>end_date</th>\n",
       "      <th>reported_number_of_human_cases</th>\n",
       "      <th>reported_number_of_deaths_among_cases</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>5</th>\n",
       "      <td>Zaire virus</td>\n",
       "      <td>1976-01-01T00:00:00Z</td>\n",
       "      <td>1976-12-31T00:00:00Z</td>\n",
       "      <td>318</td>\n",
       "      <td>280</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>8</th>\n",
       "      <td>Zaire virus</td>\n",
       "      <td>1977-01-01T00:00:00Z</td>\n",
       "      <td>1977-12-31T00:00:00Z</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>18</th>\n",
       "      <td>Zaire virus</td>\n",
       "      <td>1995-01-01T00:00:00Z</td>\n",
       "      <td>1995-12-31T00:00:00Z</td>\n",
       "      <td>315</td>\n",
       "      <td>250</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>16</th>\n",
       "      <td>Zaire virus</td>\n",
       "      <td>2001-10-01T00:00:00Z</td>\n",
       "      <td>2002-03-31T00:00:00Z</td>\n",
       "      <td>57</td>\n",
       "      <td>43</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>17</th>\n",
       "      <td>Zaire virus</td>\n",
       "      <td>2002-12-01T00:00:00Z</td>\n",
       "      <td>2003-04-30T00:00:00Z</td>\n",
       "      <td>143</td>\n",
       "      <td>128</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>10</th>\n",
       "      <td>Zaire virus</td>\n",
       "      <td>2003-11-01T00:00:00Z</td>\n",
       "      <td>2003-12-31T00:00:00Z</td>\n",
       "      <td>35</td>\n",
       "      <td>29</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>6</th>\n",
       "      <td>Zaire virus</td>\n",
       "      <td>2007-01-01T00:00:00Z</td>\n",
       "      <td>2007-12-31T00:00:00Z</td>\n",
       "      <td>264</td>\n",
       "      <td>187</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>12</th>\n",
       "      <td>Zaire virus</td>\n",
       "      <td>2008-12-01T00:00:00Z</td>\n",
       "      <td>2009-02-28T00:00:00Z</td>\n",
       "      <td>32</td>\n",
       "      <td>15</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>15</th>\n",
       "      <td>Bundibugyo virus</td>\n",
       "      <td>2012-06-01T00:00:00Z</td>\n",
       "      <td>2012-11-30T00:00:00Z</td>\n",
       "      <td>36</td>\n",
       "      <td>13</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "       ebola_subtype            start_date              end_date  \\\n",
       "5        Zaire virus  1976-01-01T00:00:00Z  1976-12-31T00:00:00Z   \n",
       "8        Zaire virus  1977-01-01T00:00:00Z  1977-12-31T00:00:00Z   \n",
       "18       Zaire virus  1995-01-01T00:00:00Z  1995-12-31T00:00:00Z   \n",
       "16       Zaire virus  2001-10-01T00:00:00Z  2002-03-31T00:00:00Z   \n",
       "17       Zaire virus  2002-12-01T00:00:00Z  2003-04-30T00:00:00Z   \n",
       "10       Zaire virus  2003-11-01T00:00:00Z  2003-12-31T00:00:00Z   \n",
       "6        Zaire virus  2007-01-01T00:00:00Z  2007-12-31T00:00:00Z   \n",
       "12       Zaire virus  2008-12-01T00:00:00Z  2009-02-28T00:00:00Z   \n",
       "15  Bundibugyo virus  2012-06-01T00:00:00Z  2012-11-30T00:00:00Z   \n",
       "\n",
       "    reported_number_of_human_cases  reported_number_of_deaths_among_cases  \n",
       "5                              318                                    280  \n",
       "8                                1                                      1  \n",
       "18                             315                                    250  \n",
       "16                              57                                     43  \n",
       "17                             143                                    128  \n",
       "10                              35                                     29  \n",
       "6                              264                                    187  \n",
       "12                              32                                     15  \n",
       "15                              36                                     13  "
      ]
     },
     "execution_count": 14,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "df_drc = ebola_data[ebola_data.country_name == \"Democratic Republic of the Congo\"]\n",
    "\n",
    "drc = df_drc[[\"ebola_subtype\", \"start_date\", \"end_date\", \"reported_number_of_human_cases\", \"reported_number_of_deaths_among_cases\"]]\n",
    "\n",
    "drc.sort([\"start_date\"])"
   ]
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 2",
   "language": "python",
   "name": "python2"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 2
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython2",
   "version": "2.7.6"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 0
}