Commit | Line | Data |
---|---|---|
e88a95b4 | 1 | /*global Gallery,Dygraph,data */ |
c1f22b5a | 2 | Gallery.register( |
d0c6a883 | 3 | 'border', |
c1f22b5a RK |
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() { | |
e88a95b4 | 12 | new Dygraph(document.getElementById('bordered'), data, |
c1f22b5a RK |
13 | { |
14 | labelsDivStyles: { border: '1px solid black' }, | |
15 | title: 'Chart Title', | |
16 | xlabel: 'Date', | |
17 | ylabel: 'Temperature (F)' | |
18 | }); | |
19 | } | |
20 | }); |