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

322
Visualizações
How can I select csv files through dropdown menu in d3.js

Actually I am trying to select csv file for my chart from dropdownmenu using d3.js but it is not selecting the options

window.filename = "{path}"; //file path thatI want to change through dropdown
const data1 = []; 
const data2 = [];
const labels = [];

The function for selecting new csv file

function goToNewPage() {
  var url = document.getElementById('csv').value;
  if (url != 'none') {

    window.location = url;
    window.filename = url;
    console.log(url)
  }
}

Please help me select different file path for the chart through the dropdown below

<form>
  <select name="csv" id="csv">
    <!-- <onmousedown="this.value='';" onchange="csv(this.value)"> -->
    <option value="{% static 'js/ff.csv' %}">1.CSV</option>
    <option value="https://stackoverflow.com/questions/67995141/chart-update-is-not-a-function-typeerror">2.CSV</option>
    <option value="{% static 'js/sketch.js' %}">3.CSV</option>
    <option value="{% static 'js/f.csv' %}">4.CSV</option>
  </select>
  <input type=button value="Go" onclick="goToNewPage()" />
</form>
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