flotr2.nolibs.js
function(data){
    return _.map(data, function(s){
      var series;
      if (s.data) {
        series = new Series();
        _.extend(series, s);
      } else {
        series = new Series({data:s});
      }
      return series;
    });
  }
function(data){
    return _.map(data, function(s){
      var series;
      if (s.data) {
        series = new Series();
        _.extend(series, s);
      } else {
        series = new Series({data:s});
      }
      return series;
    });
  }
function ( data ) { return _ . map ( data , function ( s ) { var series ; if ( s . data ) { series = new Series ( ) ; _ . extend ( series , s ) ; } else { series = new Series ( { data : s } ) ; } return series ; } ) ; }
Collects dataseries from input and parses the series into the right format. It returns an Array
of Objects each having at least the 'data' key set.
@param {Array, Object} data - Object or array of dataseries
@return {Array} Array of Objects parsed into the right format ({(...,) data: [[x1,y1], [x2,y2], ...] (, ...)})
Collects dataseries from input and parses the series into the right format . It returns an Array of Objects each having at least the data key set .