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

126
Vistas
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
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