projects
/
dygraphs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
More correctly-compiling files, plus some more info in closure-todo.txt
[dygraphs.git]
/
plugins
/
annotations.js
diff --git
a/plugins/annotations.js
b/plugins/annotations.js
index
7be7966
..
94a0642
100644
(file)
--- a/
plugins/annotations.js
+++ b/
plugins/annotations.js
@@
-6,6
+6,8
@@
Dygraph.Plugins.Annotations = (function() {
Dygraph.Plugins.Annotations = (function() {
+"use strict";
+
/**
Current bits of jankiness:
- Uses dygraph.layout_ to get the parsed annotations.
/**
Current bits of jankiness:
- Uses dygraph.layout_ to get the parsed annotations.
@@
-30,7
+32,7
@@
annotations.prototype.toString = function() {
annotations.prototype.activate = function(g) {
return {
clearChart: this.clearChart,
annotations.prototype.activate = function(g) {
return {
clearChart: this.clearChart,
- d
rawChart: this.d
rawChart
+ d
idDrawChart: this.didD
rawChart
};
};
};
};
@@
-47,12
+49,12
@@
annotations.prototype.clearChart = function(e) {
this.detachLabels();
};
this.detachLabels();
};
-annotations.prototype.drawChart = function(e) {
+annotations.prototype.d
idD
rawChart = function(e) {
var g = e.dygraph;
// Early out in the (common) case of zero annotations.
var points = g.layout_.annotated_points;
var g = e.dygraph;
// Early out in the (common) case of zero annotations.
var points = g.layout_.annotated_points;
- if (!points || points.length == 0) return;
+ if (!points || points.length ==
=
0) return;
var containerDiv = e.canvas.parentNode;
var annotationStyle = {
var containerDiv = e.canvas.parentNode;
var annotationStyle = {