Track code size on PRs
[dygraphs.git] / gallery / border.js
1 /*global Gallery,Dygraph,data */
2 Gallery.register(
3 'border',
4 {
5 name: "Border test",
6 title: 'Graph stays within the border',
7 setup: function(parent) {
8 parent.innerHTML =
9 "<div id='bordered' style='border: 1px solid red; width:600px; height:300px;'></div>";
10 },
11 run: function() {
12 new Dygraph(document.getElementById('bordered'), data,
13 {
14 labelsDivStyles: { border: '1px solid black' },
15 title: 'Chart Title',
16 xlabel: 'Date',
17 ylabel: 'Temperature (F)'
18 });
19 }
20 });