projects
/
dygraphs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge pull request #462 from danvk/fast-fill
[dygraphs.git]
/
datahandler
/
default.js
diff --git
a/datahandler/default.js
b/datahandler/default.js
index
6e6697f
..
e42b92b
100644
(file)
--- a/
datahandler/default.js
+++ b/
datahandler/default.js
@@
-14,9
+14,17
@@
/*global Dygraph:false */
"use strict";
/*global Dygraph:false */
"use strict";
-Dygraph.DataHandlers.DefaultHandler = Dygraph.DataHandler();
+/**
+ * @constructor
+ * @extends Dygraph.DataHandler
+ */
+Dygraph.DataHandlers.DefaultHandler = function() {
+};
+
var DefaultHandler = Dygraph.DataHandlers.DefaultHandler;
var DefaultHandler = Dygraph.DataHandlers.DefaultHandler;
+DefaultHandler.prototype = new Dygraph.DataHandler();
+/** @inheritDoc */
DefaultHandler.prototype.extractSeries = function(rawData, i, options) {
// TODO(danvk): pre-allocate series here.
var series = [];
DefaultHandler.prototype.extractSeries = function(rawData, i, options) {
// TODO(danvk): pre-allocate series here.
var series = [];
@@
-36,6
+44,7
@@
DefaultHandler.prototype.extractSeries = function(rawData, i, options) {
return series;
};
return series;
};
+/** @inheritDoc */
DefaultHandler.prototype.rollingAverage = function(originalData, rollPeriod,
options) {
rollPeriod = Math.min(rollPeriod, originalData.length);
DefaultHandler.prototype.rollingAverage = function(originalData, rollPeriod,
options) {
rollPeriod = Math.min(rollPeriod, originalData.length);
@@
-68,6
+77,7
@@
DefaultHandler.prototype.rollingAverage = function(originalData, rollPeriod,
return rollingData;
};
return rollingData;
};
+/** @inheritDoc */
DefaultHandler.prototype.getExtremeYValues = function(series, dateWindow,
options) {
var minY = null, maxY = null, y;
DefaultHandler.prototype.getExtremeYValues = function(series, dateWindow,
options) {
var minY = null, maxY = null, y;