* @extends {Dygraph.DataHandler}
*/
Dygraph.DataHandlers.BarsHandler = function() {
+ Dygraph.DataHandler.call(this);
};
+Dygraph.DataHandlers.BarsHandler.prototype = new Dygraph.DataHandler();
+// alias for the rest of the implementation
var BarsHandler = Dygraph.DataHandlers.BarsHandler;
-BarsHandler.prototype = new Dygraph.DataHandler();
-/** @inheritDoc */
+// TODO(danvk): figure out why the jsdoc has to be copy/pasted from superclass.
+// (I get closure compiler errors if this isn't here.)
+/**
+ * @override
+ * @param {!Array.<Array>} rawData The raw data passed into dygraphs where
+ * rawData[i] = [x,ySeries1,...,ySeriesN].
+ * @param {!number} seriesIndex Index of the series to extract. All other
+ * series should be ignored.
+ * @param {!DygraphOptions} options Dygraph options.
+ * @return {Array.<[!number,?number,?]>} The series in the unified data format
+ * where series[i] = [x,y,{extras}].
+ */
BarsHandler.prototype.extractSeries = function(rawData, seriesIndex, options) {
// Not implemented here must be extended
};
-/** @inheritDoc */
+/**
+ * @override
+ * @param {!Array.<[!number,?number,?]>} series The series in the unified
+ * data format where series[i] = [x,y,{extras}].
+ * @param {!number} rollPeriod The number of points over which to average the data
+ * @param {!DygraphOptions} options The dygraph options.
+ * TODO(danvk): be more specific than "Array" here.
+ * @return {!Array.<[!number,?number,?]>} the rolled series.
+ */
BarsHandler.prototype.rollingAverage =
function(series, rollPeriod, options) {
// Not implemented here, must be extended.
* @param {!DygraphOptions} options Dygraph options.
* @return {Array.<[!number,?number,?]>} The series in the unified data format
* where series[i] = [x,y,{extras}].
- * @public
*/
handler.prototype.extractSeries = function(rawData, seriesIndex, options) {
};
* @param {!number} boundaryIdStart Index offset of the first point, equal to the
* number of skipped points left of the date window minimum (if any).
* @return {!Array.<Dygraph.PointType>} List of points for this series.
- * @public
*/
handler.prototype.seriesToPoints = function(series, setName, boundaryIdStart) {
// TODO(bhs): these loops are a hot-spot for high-point-count charts. In
* @param {!DygraphOptions} options The dygraph options.
* TODO(danvk): be more specific than "Array" here.
* @return {!Array.<[!number,?number,?]>} the rolled series.
- * @public
*/
handler.prototype.rollingAverage = function(series, rollPeriod, options) {
};
* @param {!DygraphOptions} options The dygraph options.
* @return {Array.<number>} The low and high extremes of the series in the
* given window with the format: [low, high].
- * @public
*/
handler.prototype.getExtremeYValues = function(series, dateWindow, options) {
};
* the plotter.
* @param {!Object} axis The axis on which the series will be plotted.
* @param {!boolean} logscale Weather or not to use a logscale.
- * @public
*/
handler.prototype.onLineEvaluated = function(points, axis, logscale) {
};