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