Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

132
Views
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
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!