series(pivotConfig) {
    return this.seriesNames(pivotConfig).map(({ title, key }) => ({
      title,
      key,
      series: this.chartPivot(pivotConfig).map(({ category, x, ...obj }) => ({ value: obj[key], category, x }))
    }));
  }
/**
   * Returns an array of series with key, title and series data.
   * ```js
   * // For the query
   * {
   *   measures: ['Stories.count'],
   *   timeDimensions: [{
   *     dimension: 'Stories.time',
   *     dateRange: ['2015-01-01', '2015-12-31'],
   *     granularity: 'month'
   *   }]
   * }
   *
   * // ResultSet.series() will return
   * [
   *   {
   *     key: 'Stories.count',
   *     title: 'Stories Count',
   *     series: [
   *       { x: '2015-01-01T00:00:00', value: 27120 },
   *       { x: '2015-02-01T00:00:00', value: 25861 },
   *       { x: '2015-03-01T00:00:00', value: 29661 },
   *       //...
   *     ],
   *   },
   * ]
   * ```
   * @param {PivotConfig} [pivotConfig]
   * @returns {Array}
   */
Returns an array of series with key, title and series data.


Returns an array of series with key title and series data .
series(pivotConfig) {
    return this.seriesNames(pivotConfig).map(({ title, key }) => ({
      title,
      key,
      series: this.chartPivot(pivotConfig).map(({ category, x, ...obj }) => ({ value: obj[key], category, x }))
    }));
  }
series ( pivotConfig ) { return this . seriesNames ( pivotConfig ) . map ( ( { title , key } ) => ( { title , key , series : this . chartPivot ( pivotConfig ) . map ( ( { category , x , ... obj } ) => ( { value : obj [ key ] , category , x } ) ) } ) ) ; }
Returns an array of series with key, title and series data.
Returns an array of series with key title and series data .