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

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