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

321
Views
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
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!