rsion":"1"}]}'>
    </script>
  </head>
  <body>
    <div id="vis_div" style="width: 600px; height: 400px;"></div>

    <!-- Add a button for the user to click to initiate auth sequence -->
    <button id="authorize-button" style="visibility: hidden">Authorize</button>

    <script type="text/javascript">
    // Now.
    var endDate = new Date();
    // Six months ago.
    var startDate = new Date(endDate.getTime() - 1000 * 60 * 60 * 24 * 180);

    // Gets and renders the data.
    function makeApiCall() {