Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

142
Visualizações
How to fix Row 0 given with size different than 0 error in Google charts?

I am working with google charts for the first time and I have no idea about the errors of this library. Please guide me where I am wrong.

enter image description here

    let initFlag = (this.leaderBoardData == null) ? true : false;
    let chartData = leaderBoardData;
    if (!this.resize) {
      for (var data of chartData) {
        let strLen = 14;
        let uname = data.username;
        let title = (uname.length > strLen) ? uname.substring(0, strLen) + '...' : uname;
        let value = data.socialPoint;
        let color = data.colorCode;
        let tooltipValue = data.userName + '\n Count: ' + value;
        this.usageData.push([title, value, color, value, tooltipValue]);
      }
    }

    let gcData = new google.visualization.DataTable();

    if (initFlag) {
      gcData.addColumn('string', 'Dealer Name');
      gcData.addColumn('number', 'Count');
      gcData.addColumn({ type: 'string', role: "style" });
      gcData.addColumn({ type: 'number', role: "annotation" });
      gcData.addColumn({ type: 'string', role: 'tooltip' });
    }

    gcData.addRows(this.usageData);

Response from console

enter image description here

Any solution appreciated!

about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda