X-Git-Url: https://adrianiainlam.tk/git/?a=blobdiff_plain;f=dygraph-options.js;h=2dc88ae471cacaf48bc05a7f90b14ea35bd0ef01;hb=a22cc80916b6e165451995e1ae3ed4d36dc86eab;hp=334b2f6429525cbd66160881ad4cf315a5417ea4;hpb=72621b9af29dbd2e1729c3d841e2eef8027ca9b7;p=dygraphs.git diff --git a/dygraph-options.js b/dygraph-options.js index 334b2f6..2dc88ae 100644 --- a/dygraph-options.js +++ b/dygraph-options.js @@ -36,7 +36,7 @@ var DygraphOptions = (function() { var DygraphOptions = function(dygraph) { /** * The dygraph. - * @type {Dygraph} + * @type {!Dygraph} */ this.dygraph_ = dygraph; @@ -47,8 +47,10 @@ var DygraphOptions = function(dygraph) { this.yAxes_ = []; /** - * { options : { axis-specific options. } } - * @type {Object} @private + * Contains x-axis specific options, which are stored in the options key. + * This matches the yAxes_ object structure (by being a dictionary with an + * options element) allowing for shared code. + * @type {options: Object} @private */ this.xAxis_ = {}; this.series_ = {}; @@ -71,7 +73,7 @@ var DygraphOptions = function(dygraph) { * Not optimal, but does the trick when you're only using two axes. * If we move to more axes, this can just become a function. * - * @type {Object.} + * @type {Object.} * @private */ DygraphOptions.AXIS_STRING_MAPPINGS_ = { @@ -368,15 +370,6 @@ DygraphOptions.prototype.seriesNames = function() { return this.labels_; }; -/* Are we using this? */ -/** - * Return the index of the specified series. - * @param {string} series the series name. - */ -DygraphOptions.prototype.indexOfSeries = function(series) { - return this.series_[series].idx; -}; - return DygraphOptions; })();