Make dblclick event cancelable. (#840)
[dygraphs.git] / gallery / border.js
CommitLineData
e88a95b4 1/*global Gallery,Dygraph,data */
c1f22b5a 2Gallery.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 =
93a5bb4c 9 "<style>.dygraph-legend { border: 1px solid black; }</style>" +
c1f22b5a
RK
10 "<div id='bordered' style='border: 1px solid red; width:600px; height:300px;'></div>";
11 },
12 run: function() {
e88a95b4 13 new Dygraph(document.getElementById('bordered'), data,
c1f22b5a 14 {
c1f22b5a
RK
15 title: 'Chart Title',
16 xlabel: 'Date',
17 ylabel: 'Temperature (F)'
18 });
19 }
20 });