diff --git a/closure-todo.txt b/closure-todo.txt
index 081b9edfc..c9d42b721 100644
--- a/closure-todo.txt
+++ b/closure-todo.txt
@@ -20,14 +20,14 @@ x dygraph-tickers.js
x dygraph-options-reference.js
x dygraph-utils.js
x dashed-canvas.js
+- dygraph-plugin-base.js
+- dygraph-plugin-install.js
Plugins:
- plugins/annotations.js
- plugins/axes.js
-- plugins/base.js
- plugins/chart-labels.js
- plugins/grid.js
-- plugins/install.js
- plugins/legend.js
Here's a command that can be used to build dygraphs using the closure
diff --git a/docs/index.html b/docs/index.html
index 97a0d4a6f..66716963e 100644
--- a/docs/index.html
+++ b/docs/index.html
@@ -408,6 +408,13 @@
Internet Explorer Compatibility
Most browsers will ignore the trailing comma, but it will break under IE.
+ You may also need to delay instantiating any dygraphs until after the DOM
+ content is ready, as there have been some reports
+ that excanvas won't work until this happens. If you're using jQuery, this
+ means drawing your charts inside of a $(function() { ... })
+ block.
+
GViz Data
The /tmp/dygraph.js
+Copyright () {
+ echo '/*! @license Copyright 2011 Dan Vanderkam (danvdk@gmail.com) MIT-licensed (http://opensource.org/licenses/MIT) */'
+}
-java -jar yuicompressor-2.4.2.jar /tmp/dygraph.js \
-> /tmp/dygraph-packed.js
+CatCompressed () {
+ Copyright
+ CatSources \
+ | java -jar yuicompressor-2.4.2.jar --type js
+}
-(
- echo '/*! @license Copyright 2011 Dan Vanderkam (danvdk@gmail.com) MIT-licensed (http://opensource.org/licenses/MIT) */'
- cat /tmp/dygraph-packed.js
-) > dygraph-combined.js
-chmod a+r dygraph-combined.js
+ACTION="${1:-update}"
+case "$ACTION" in
+ls)
+ GetSources
+ ;;
+cat)
+ Copyright
+ CatSources
+ ;;
+compress*|cat_compress*)
+ CatCompressed
+ ;;
+update)
+ CatCompressed > dygraph-combined.js
+ chmod a+r dygraph-combined.js
+ ;;
+*)
+ echo >&2 "Unknown action '$ACTION'"
+ exit 1
+ ;;
+esac
diff --git a/jsTestDriver.conf b/jsTestDriver.conf
index 2b411e2e9..ffbc369bd 100644
--- a/jsTestDriver.conf
+++ b/jsTestDriver.conf
@@ -17,13 +17,7 @@ load:
- dygraph-tickers.js
- dygraph-dev.js
- excanvas.js
- # NOTE: we can't do plugins/*.js because the order is important.
- - plugins/base.js
- - plugins/annotations.js
- - plugins/axes.js
- - plugins/range-selector.js
- - plugins/chart-labels.js
- - plugins/grid.js
- - plugins/legend.js
- - plugins/install.js
+ - dygraph-plugin-base.js
+ - plugins/*.js
+ - dygraph-plugin-install.js
- auto_tests/tests/*.js
diff --git a/phantom-driver.js b/phantom-driver.js
index 6e4c18e9d..9b98fdf14 100644
--- a/phantom-driver.js
+++ b/phantom-driver.js
@@ -179,8 +179,9 @@ RunAllAutoTests(function(num_failing, num_passing) {
if (num_failing !== 0) {
console.log('FAIL');
phantom.exit();
+ } else {
+ console.log('PASS');
}
- console.log('PASS');
phantom.exit();
// This is not yet reliable enough to be useful:
diff --git a/plugins/base.js b/plugins/base.js
deleted file mode 100644
index f5e621620..000000000
--- a/plugins/base.js
+++ /dev/null
@@ -1,6 +0,0 @@
-/*global Dygraph:false */
-
-// Namespace for plugins.
-Dygraph.Plugins = {};
-
-// TODO(danvk): move this into the top-level directory. Only plugins here.
diff --git a/tests/css-positioning.html b/tests/css-positioning.html
new file mode 100644
index 000000000..733c12ff2
--- /dev/null
+++ b/tests/css-positioning.html
@@ -0,0 +1,48 @@
+
+
+
+
+ demo
+
+
+
+
+
+ Mouseovers should work as expected (dots should align with mouse)
+
+
+
+
+