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