function AggSliders(params, graphs, startLineIndex, startShadowIndices) {
  this.params_ = params;
  this.graphs_ = graphs;

  // Default aggregate graph indices.
  this.lineSelect = startLineIndex;
  // Shadow select indexes: [lower, upper]:
  this.shadowSelect = startShadowIndices;

  if (params.frag.aggregates) {
    var tmp = params.frag.aggregates.split(',');
    if (tmp.length == 3) {
      // Determine if we have old-style or new-style agg selectors.
      if (isNaN(tmp[0])) {  // New style if not a number.
        this.lineSelect = AggSliders.MAP_PARAM[tmp[0]];
        this.shadowSelect[0] = AggSliders.MAP_PARAM[tmp[1]];
        this.shadowSelect[1] = AggSliders.MAP_PARAM[tmp[2]];
      } else {  // Old style.
        this.lineSelect = AggSliders.MAP_DEPRECATED[tmp[0]];
        this.shadowSelect[0] = AggSliders.MAP_DEPRECATED[tmp[1]];
        this.shadowSelect[1] = AggSliders.MAP_DEPRECATED[tmp[2]];
      }
    }
  }

  this.elemAllTextDivs = null;
  this.selectedLineClassName = null;
  this.selectedShadowClassName = null;
}
/**
 * Aggregate slider creation and manipulation object.
 * @param {Params} params A URL parameter storage and manipulation object.
 * @param {graphs} graphs A graphs manipulation object.
 * @param {number} startLineIndex Line select start index (between 0 and 11).
 * @param {Array.<number>} startShadowIndices Shadow select start indices
 *   (between 0 and 11).
 * @constructor
 */
Aggregate slider creation and manipulation object.
@param {Params} params A URL parameter storage and manipulation object.
Aggregate slider creation and manipulation object . @param { Params } params A URL parameter storage and manipulation object .
function AggSliders(params, graphs, startLineIndex, startShadowIndices) {
  this.params_ = params;
  this.graphs_ = graphs;
  this.lineSelect = startLineIndex;
  this.shadowSelect = startShadowIndices;
  if (params.frag.aggregates) {
    var tmp = params.frag.aggregates.split(',');
    if (tmp.length == 3) {
      if (isNaN(tmp[0])) {  
        this.lineSelect = AggSliders.MAP_PARAM[tmp[0]];
        this.shadowSelect[0] = AggSliders.MAP_PARAM[tmp[1]];
        this.shadowSelect[1] = AggSliders.MAP_PARAM[tmp[2]];
      } else {  
        this.lineSelect = AggSliders.MAP_DEPRECATED[tmp[0]];
        this.shadowSelect[0] = AggSliders.MAP_DEPRECATED[tmp[1]];
        this.shadowSelect[1] = AggSliders.MAP_DEPRECATED[tmp[2]];
      }
    }
  }
  this.elemAllTextDivs = null;
  this.selectedLineClassName = null;
  this.selectedShadowClassName = null;
}
function AggSliders ( params , graphs , startLineIndex , startShadowIndices ) { this . params_ = params ; this . graphs_ = graphs ; this . lineSelect = startLineIndex ; this . shadowSelect = startShadowIndices ; if ( params . frag . aggregates ) { var tmp = params . frag . aggregates . split ( ',' ) ; if ( tmp . length == 3 ) { if ( isNaN ( tmp [ 0 ] ) ) { this . lineSelect = AggSliders . MAP_PARAM [ tmp [ 0 ] ] ; this . shadowSelect [ 0 ] = AggSliders . MAP_PARAM [ tmp [ 1 ] ] ; this . shadowSelect [ 1 ] = AggSliders . MAP_PARAM [ tmp [ 2 ] ] ; } else { this . lineSelect = AggSliders . MAP_DEPRECATED [ tmp [ 0 ] ] ; this . shadowSelect [ 0 ] = AggSliders . MAP_DEPRECATED [ tmp [ 1 ] ] ; this . shadowSelect [ 1 ] = AggSliders . MAP_DEPRECATED [ tmp [ 2 ] ] ; } } } this . elemAllTextDivs = null ; this . selectedLineClassName = null ; this . selectedShadowClassName = null ; }
Aggregate slider creation and manipulation object.
Aggregate slider creation and manipulation object .
// Default aggregate graph indices. // Shadow select indexes: [lower, upper]: // Determine if we have old-style or new-style agg selectors. // New style if not a number. // Old style.