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

120
Views
Array length equals 1 but the array contains more elements

I am fairly new to javascrit and d3. I have a problem when trying to read data from a csv file using d3.csv method.

d3.csv("csv").then(function(x) {
                x.forEach(function(d){
                  d.Deviations= +d.Deviations;
                  d.EmotionCount= +d.EmotionCount;
                  d.NumberWord= +d.NumberWord;
                  d.SucRate= +d.SucRate;
                  d.Time2ans= +d.Time2ans;
                  data.push(d)
                }); 
            });

where data is an array with initially 1 element. Then I use this data to create a radar chart. The thing is that data.length returns 1 instead of the appropriate number of elements (118) and I can't display the other rows since I loop through data to create the visualization. What should I do to get the length == 118. Thank you

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!