projects
/
dygraphs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
first stab at keying DygraphLayout.points on setIdx
[dygraphs.git]
/
plugins
/
chart-labels.js
diff --git
a/plugins/chart-labels.js
b/plugins/chart-labels.js
index
5a109df
..
af12bcb
100644
(file)
--- a/
plugins/chart-labels.js
+++ b/
plugins/chart-labels.js
@@
-6,6
+6,7
@@
Dygraph.Plugins.ChartLabels = (function() {
// TODO(danvk): move chart label options out of dygraphs and into the plugin.
Dygraph.Plugins.ChartLabels = (function() {
// TODO(danvk): move chart label options out of dygraphs and into the plugin.
+// TODO(danvk): only tear down & rebuild the DIVs when it's necessary.
var chart_labels = function() {
this.title_div_ = null;
var chart_labels = function() {
this.title_div_ = null;
@@
-22,7
+23,7
@@
chart_labels.prototype.activate = function(g) {
return {
layout: this.layout,
// clearChart: this.clearChart,
return {
layout: this.layout,
// clearChart: this.clearChart,
- d
rawChart: this.d
rawChart
+ d
idDrawChart: this.didD
rawChart
};
};
};
};
@@
-168,7
+169,7
@@
chart_labels.prototype.layout = function(e) {
}
};
}
};
-chart_labels.prototype.drawChart = function(e) {
+chart_labels.prototype.d
idD
rawChart = function(e) {
var g = e.dygraph;
if (this.title_div_) {
this.title_div_.children[0].innerHTML = g.getOption('title');
var g = e.dygraph;
if (this.title_div_) {
this.title_div_.children[0].innerHTML = g.getOption('title');