Reduce the size of some overly-long graphs. OK, that's subjective, but if you don...
authorRobert Konigsberg <konigsberg@google.com>
Tue, 17 Jan 2012 00:32:03 +0000 (19:32 -0500)
committerRobert Konigsberg <konigsberg@google.com>
Tue, 17 Jan 2012 00:32:03 +0000 (19:32 -0500)
gallery/drawing.js
gallery/dynamic-update.js
gallery/plotter.js
gallery/range-selector.js
gallery/stock.js
gallery/temperature-sf-ny.js

index eef3091..6443cf4 100644 (file)
@@ -10,7 +10,7 @@ Gallery.register(
           "<div id='tool_pencil'></div>",
           "<div id='tool_eraser'></div>",
           "</div>",
-          "<div id='draw_div' style='width: 800px; height: 400px;'></div>",
+          "<div id='draw_div' style='width: 600px; height: 300px;'></div>",
           "<p style='font-size: 10pt'>Toolbar/cursor icons are CC-licensed from ",
           "<a href='http://www.fatcow.com/free-icons'>FatCow</a>.</p>"].join("\n");
     },
index 0eb82bb..6bb34ee 100644 (file)
@@ -5,7 +5,7 @@ Gallery.register(
     title: 'Live random data',
     setup: function(parent) {
       parent.innerHTML = [
-          "<div id='div_g' style='width:800px; height:400px;'></div>",
+          "<div id='div_g' style='width:600px; height:300px;'></div>",
           "<p>This test is modeled after a ",
           "<a href='http://www.highcharts.com/demo/?example=dynamic-update&theme=default'>highcharts",
           "test</a>. New points should appear once per second. Try zooming and ",
index 268ea88..be39eb3 100644 (file)
@@ -19,11 +19,11 @@ Gallery.register(
         "</select>",
         "</p>",
         "",
-        "    <p><b>x range: </b> <input type='text' width='5' id='x1' value='-10' />",
-        "    to <input type='text' width='5' id='x2' value='10' /></p>",
-        "    <p><button id='plot'>Plot</button></p>",
+        "<p><b>x range: </b> <input type='text' width='5' id='x1' value='-10' />",
+        "to <input type='text' width='5' id='x2' value='10' /></p>",
+        "<p><button id='plot'>Plot</button></p>",
         "",
-        "    <div id='graph_div' style='width:800px; height:400px;'></div>"].join("\n");
+        "<div id='graph_div' style='width:600px; height:300px;'></div>"].join("\n");
 
     },
     run: function() {
index 57ac71b..0ea9efa 100644 (file)
@@ -6,10 +6,10 @@ Gallery.register(
     setup: function(parent) {
       parent.innerHTML = [
           "<p>No roll period.</p>",
-          "<div id='noroll' style='width:800px; height:320px;'></div>",
+          "<div id='noroll' style='width:600px; height:300px;'></div>",
           "",
           "<p>Roll period of 14 timesteps, custom range selector height and plot color.</p>",
-          "<div id='roll14' style='width:800px; height:320px;'></div>"].join("\n");
+          "<div id='roll14' style='width:600px; height:300px;'></div>"].join("\n");
     },
     run: function() {
       g1 = new Dygraph(
index cb7fe3e..4c6af6d 100644 (file)
@@ -5,8 +5,8 @@ Gallery.register(
     title: 'Stock Chart Demo',
     setup: function(parent) {
       parent.innerHTML = [
-          "<div id='stock_div' style='width: 800px; height: 400px;'></div><br/>",
-          "<div style='width: 800px; text-align: center;'>",
+          "<div id='stock_div' style='width: 600px; height: 300px;'></div><br/>",
+          "<div style='width: 600px; text-align: center;'>",
           "  <button id='linear'>Linear Scale</button>&nbsp;",
           "  <button id='log' disabled='true'>Log Scale</button>",
           "</div>"].join("\n");
index d903b8b..c8e4fb1 100644 (file)
@@ -7,9 +7,9 @@ Gallery.register(
     setup: function(parent) {
       parent.innerHTML = [
           "<p>Roll period of 14 timesteps.</p>",
-          "<div id='roll14' style='width:800px; height:320px;'></div>",
+          "<div id='roll14' style='width:600px; height:300px;'></div>",
           "<p>No roll period.</p>",
-          "<div id='noroll' style='width:800px; height:320px;'></div>"]
+          "<div id='noroll' style='width:600px; height:300px;'></div>"]
           .join("\n");
     },
     run: function() {