Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

137
Vistas
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 la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda