projects
/
dygraphs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Remove the ignore of datahandler folder.
[dygraphs.git]
/
plugins
/
legend.js
diff --git
a/plugins/legend.js
b/plugins/legend.js
index
5c46aee
..
b54770f
100644
(file)
--- a/
plugins/legend.js
+++ b/
plugins/legend.js
@@
-254,7
+254,7
@@
legend.generateLegendHTML = function(g, x, sel_points, oneEmWidth, row) {
// TODO(danvk): remove this use of a private API
var xOptView = g.optionsViewForAxis_('x');
var xvf = xOptView('valueFormatter');
// TODO(danvk): remove this use of a private API
var xOptView = g.optionsViewForAxis_('x');
var xvf = xOptView('valueFormatter');
- html = xvf
(
x, xOptView, labels[0], g, row, 0);
+ html = xvf
.call(g,
x, xOptView, labels[0], g, row, 0);
if (html !== '') {
html += ':';
}
if (html !== '') {
html += ':';
}
@@
-277,7
+277,7
@@
legend.generateLegendHTML = function(g, x, sel_points, oneEmWidth, row) {
var series = g.getPropertiesForSeries(pt.name);
var yOptView = yOptViews[series.axis - 1];
var fmtFunc = yOptView('valueFormatter');
var series = g.getPropertiesForSeries(pt.name);
var yOptView = yOptViews[series.axis - 1];
var fmtFunc = yOptView('valueFormatter');
- var yval = fmtFunc
(
pt.yval, yOptView, pt.name, g, row, labels.indexOf(pt.name));
+ var yval = fmtFunc
.call(g,
pt.yval, yOptView, pt.name, g, row, labels.indexOf(pt.name));
var cls = (pt.name == highlightSeries) ? " class='highlight'" : "";
var cls = (pt.name == highlightSeries) ? " class='highlight'" : "";