generateTableHead() {
      const columnLength = this.utility.getMaxLength(Object.values(this.data));
      let head = "";

      if (columnLength > 1) {
        head += `
          <thead>
            <tr>
              <th style="border-color: ${this.backgroundColor}">Labels</th>
              ${this.generateMultipleTags(columnLength, "th", [`border-color: ${this.backgroundColor}`], "Data ")}
              <th style="border-color: ${this.backgroundColor}">Total</th>
            </tr>
          </thead>
        `;
      } else {
        head += `
          <thead>
            <tr>
              <th style="border-color: ${this.backgroundColor}">Labels</th>
              ${this.generateMultipleTags(Object.keys(this.data), "th", [`border-color: ${this.backgroundColor}`])}
            </tr>
          </thead>
        `;
      }

      return head;
    }
/**
     * Generate the head section of the graph table.
     * @returns {String}
     */
Generate the head section of the graph table.
@returns {String}
Generate the head section of the graph table . @returns { String }
generateTableHead() {
      const columnLength = this.utility.getMaxLength(Object.values(this.data));
      let head = "";
      if (columnLength > 1) {
        head += `
          <thead>
            <tr>
              <th style="border-color: ${this.backgroundColor}">Labels</th>
              ${this.generateMultipleTags(columnLength, "th", [`border-color: ${this.backgroundColor}`], "Data ")}
              <th style="border-color: ${this.backgroundColor}">Total</th>
            </tr>
          </thead>
        `;
      } else {
        head += `
          <thead>
            <tr>
              <th style="border-color: ${this.backgroundColor}">Labels</th>
              ${this.generateMultipleTags(Object.keys(this.data), "th", [`border-color: ${this.backgroundColor}`])}
            </tr>
          </thead>
        `;
      }
      return head;
    }
generateTableHead ( ) { const columnLength = this . utility . getMaxLength ( Object . values ( this . data ) ) ; let head = "" ; if ( columnLength > 1 ) { head += ` ${ this . backgroundColor } ${ this . generateMultipleTags ( columnLength , "th" , [ ` ${ this . backgroundColor } ` ] , "Data " ) } ${ this . backgroundColor } ` ; } else { head += ` ${ this . backgroundColor } ${ this . generateMultipleTags ( Object . keys ( this . data ) , "th" , [ ` ${ this . backgroundColor } ` ] ) } ` ; } return head ; }
Generate the head section of the graph table.
Generate the head section of the graph table .