generateTableBodyRows(vals, labels, total) {
      let rows = "";

      if (total) {
        vals.forEach((val, index) => {
          rows += `
          <tr>
            <th>${labels[index]}</th>
            ${this.generateMultipleTags(val, "td", [], "", "", true)}
            <th>${this.formatValue(this.utility.sumArray(val))}</th>
          </tr>`;
        });
      } else {
        rows += `
          <tr>
            <th>Data</th>
            ${this.generateMultipleTags(vals.map(val => val[0]), "td", [], "", "", true)}
          </tr>
        `;
      }

      return rows;
    }
/**
     * Generate the rows in the graph table body.
     * @param {Array<Array<Number>>} vals Array of arrays to be drawn as a table.
     * @param {Array<String>} labels The labels of each row or column.
     * @param {Boolean} total Option to determine if the table will be totalled or not.
     * @returns {String}
     */
Generate the rows in the graph table body.
@param {Array>} vals Array of arrays to be drawn as a table.
@param {Array} labels The labels of each row or column.
@param {Boolean} total Option to determine if the table will be totalled or not.
@returns {String}
Generate the rows in the graph table body . @param { Array > } vals Array of arrays to be drawn as a table . @param { Array } labels The labels of each row or column . @param { Boolean } total Option to determine if the table will be totalled or not . @returns { String }
generateTableBodyRows(vals, labels, total) {
      let rows = "";
      if (total) {
        vals.forEach((val, index) => {
          rows += `
          <tr>
            <th>${labels[index]}</th>
            ${this.generateMultipleTags(val, "td", [], "", "", true)}
            <th>${this.formatValue(this.utility.sumArray(val))}</th>
          </tr>`;
        });
      } else {
        rows += `
          <tr>
            <th>Data</th>
            ${this.generateMultipleTags(vals.map(val => val[0]), "td", [], "", "", true)}
          </tr>
        `;
      }
      return rows;
    }
generateTableBodyRows ( vals , labels , total ) { let rows = "" ; if ( total ) { vals . forEach ( ( val , index ) => { rows += ` ${ labels [ index ] } ${ this . generateMultipleTags ( val , "td" , [ ] , "" , "" , true ) } ${ this . formatValue ( this . utility . sumArray ( val ) ) } ` ; } ) ; } else { rows += ` ${ this . generateMultipleTags ( vals . map ( val => val [ 0 ] ) , "td" , [ ] , "" , "" , true ) } ` ; } return rows ; }
Generate the rows in the graph table body.
Generate the rows in the graph table body .