From 3c10a0f3519355ee651d04bf2972bd31298eff18 Mon Sep 17 00:00:00 2001
From: Robert Konigsberg
Date: Mon, 16 Jan 2012 15:06:42 -0500
Subject: [PATCH] Clean-up.
---
gallery/README | 5 +-
gallery/annotation-gviz.js | 4 +-
gallery/annotation.js | 19 +-
gallery/callback.js | 115 +++--
gallery/data.js | 1161 +++++++++++++++++++++++++++++++++++++++++
gallery/drawing.js | 288 ++++++-----
gallery/linear-regression.js | 22 +-
gallery/link-interaction.js | 28 +-
gallery/number-format.js | 5 +-
gallery/plotter.js | 19 +-
gallery/stock.js | 1177 +-----------------------------------------
gallery/two-axes.js | 12 +-
12 files changed, 1443 insertions(+), 1412 deletions(-)
diff --git a/gallery/README b/gallery/README
index e00cf81..573845b 100644
--- a/gallery/README
+++ b/gallery/README
@@ -30,6 +30,5 @@ TODOs:
* Consider moving HTML to HTML files that are read via XMLHTTP
* Add margin-left: 30px to #workarea, and then make #workarea h2 { margin-left: -30px}
* Replace with
" +
"Precision to use (1 to 21):" +
- "
" +
+ " " +
"" +
"";
},
@@ -50,7 +50,7 @@ Gallery.register(
return table;
};
- window.updateTable = function() {
+ updateTable = function() {
var headers = ['Dygraph.floatFormat()', 'toPrecision()',
'Dygraph.floatFormat()', 'toPrecision()'];
var numbers = [];
@@ -74,6 +74,7 @@ Gallery.register(
};
document.getElementById('p_input').value = '4';
+ document.getElementById('p_input').onchange = updateTable;
updateTable();
}
});
diff --git a/gallery/plotter.js b/gallery/plotter.js
index 7a60aba..dfbe4b2 100644
--- a/gallery/plotter.js
+++ b/gallery/plotter.js
@@ -10,26 +10,27 @@ Gallery.register(
"
\n" +
- "Preset functions: