 type="text/css">
    #bordered {
      border: 1px solid red;
    }
    </style>
  </head>
  <body>
    <p>Hopefully this stays in its border:</p>
    <div id="bordered" style="width:600px; height:300px;"></div>
    <script type="text/javascript">
    var g = new Dygraph(document.getElementById('bordered'), data,
    {
      labelsDivStyles: { border: '1px solid black' },
      title: 'Chart Title',
      xlabel: 'Date',
      ylabel: 'Temperature (F)'
    });
    </script>
  </body>
</html>
