UNPKG

dcos-dygraphs

Version:

dygraphs is a fast, flexible open source JavaScript charting library.

32 lines (30 loc) 832 B
<!DOCTYPE html> <html> <head> <title>gadget border</title> <!-- For production (minified) code, use: <script type="text/javascript" src="dygraph-combined.js"></script> --> <script type="text/javascript" src="../dist/dygraph.js"></script> <script type="text/javascript" src="data.js"></script> <style 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>