tablePivot(pivotConfig) {
    const normalizedPivotConfig = this.normalizePivotConfig(pivotConfig || {});

    return this.pivot(normalizedPivotConfig).map(({ xValues, yValuesArray }) => fromPairs(
      normalizedPivotConfig.x
        .map((key, index) => [key, xValues[index]])
        .concat(
          (yValuesArray[0][0].length &&
              yValuesArray.map(([yValues, measure]) => [
                yValues.join('.'),
                measure
              ])) ||
              []
        )
    ));
  }
/**
   * Returns normalized query result data prepared for visualization in the table format.
   *
   * You can find the examples of using the `pivotConfig` [here](#pivot-config)
   *
   * For example:
   * ```js
   * // For the query
   * {
   *   measures: ['Stories.count'],
   *   timeDimensions: [{
   *     dimension: 'Stories.time',
   *     dateRange: ['2015-01-01', '2015-12-31'],
   *     granularity: 'month'
   *   }]
   * }
   *
   * // ResultSet.tablePivot() will return
   * [
   *   { "Stories.time": "2015-01-01T00:00:00", "Stories.count": 27120 },
   *   { "Stories.time": "2015-02-01T00:00:00", "Stories.count": 25861 },
   *   { "Stories.time": "2015-03-01T00:00:00", "Stories.count": 29661 },
   *   //...
   * ]
   * ```
   * @param {PivotConfig} [pivotConfig]
   * @returns {Array} of pivoted rows
   */
Returns normalized query result data prepared for visualization in the table format.
You can find the examples of using the `pivotConfig` [here](#pivot-config)




Returns normalized query result data prepared for visualization in the table format . You can find the examples of using the ` pivotConfig ` [ here ] ( #pivot - config )
tablePivot(pivotConfig) {
    const normalizedPivotConfig = this.normalizePivotConfig(pivotConfig || {});
    return this.pivot(normalizedPivotConfig).map(({ xValues, yValuesArray }) => fromPairs(
      normalizedPivotConfig.x
        .map((key, index) => [key, xValues[index]])
        .concat(
          (yValuesArray[0][0].length &&
              yValuesArray.map(([yValues, measure]) => [
                yValues.join('.'),
                measure
              ])) ||
              []
        )
    ));
  }
tablePivot ( pivotConfig ) { const normalizedPivotConfig = this . normalizePivotConfig ( pivotConfig || { } ) ; return this . pivot ( normalizedPivotConfig ) . map ( ( { xValues , yValuesArray } ) => fromPairs ( normalizedPivotConfig . x . map ( ( key , index ) => [ key , xValues [ index ] ] ) . concat ( ( yValuesArray [ 0 ] [ 0 ] . length && yValuesArray . map ( ( [ yValues , measure ] ) => [ yValues . join ( '.' ) , measure ] ) ) || [ ] ) ) ) ; }
Returns normalized query result data prepared for visualization in the table format.
Returns normalized query result data prepared for visualization in the table format .