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

122
Visualizações
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 à 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