projects
/
dygraphs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Adding test for multi axis stacking
[dygraphs.git]
/
datahandler
/
bars-custom.js
diff --git
a/datahandler/bars-custom.js
b/datahandler/bars-custom.js
index
37255e5
..
7313ca2
100644
(file)
--- a/
datahandler/bars-custom.js
+++ b/
datahandler/bars-custom.js
@@
-14,11
+14,17
@@
/*global Dygraph:false */
"use strict";
/*global Dygraph:false */
"use strict";
-Dygraph.DataHandlers.CustomBarsHandler = Dygraph.DataHandler();
+/**
+ * @constructor
+ * @extends Dygraph.DataHandlers.BarsHandler
+ */
+Dygraph.DataHandlers.CustomBarsHandler = function() {
+};
+
var CustomBarsHandler = Dygraph.DataHandlers.CustomBarsHandler;
CustomBarsHandler.prototype = new Dygraph.DataHandlers.BarsHandler();
var CustomBarsHandler = Dygraph.DataHandlers.CustomBarsHandler;
CustomBarsHandler.prototype = new Dygraph.DataHandlers.BarsHandler();
-/
/ customBars
+/
** @inheritDoc */
CustomBarsHandler.prototype.extractSeries = function(rawData, i, options) {
// TODO(danvk): pre-allocate series here.
var series = [];
CustomBarsHandler.prototype.extractSeries = function(rawData, i, options) {
// TODO(danvk): pre-allocate series here.
var series = [];
@@
-49,8
+55,9
@@
CustomBarsHandler.prototype.extractSeries = function(rawData, i, options) {
return series;
};
return series;
};
-CustomBarsHandler.prototype.rollingAverage = function(originalData, rollPeriod,
- options) {
+/** @inheritDoc */
+CustomBarsHandler.prototype.rollingAverage =
+ function(originalData, rollPeriod, options) {
rollPeriod = Math.min(rollPeriod, originalData.length);
var rollingData = [];
var y, low, high, mid,count, i, extremes;
rollPeriod = Math.min(rollPeriod, originalData.length);
var rollingData = [];
var y, low, high, mid,count, i, extremes;