En realidad, estoy tratando de seleccionar el archivo csv para mi gráfico desde el menú desplegable usando d3.js pero no está seleccionando las opciones
window.filename = "{path}"; //file path thatI want to change through dropdown const data1 = []; const data2 = []; const labels = [];La función para seleccionar un nuevo archivo csv
function goToNewPage() { var url = document.getElementById('csv').value; if (url != 'none') { window.location = url; window.filename = url; console.log(url) } }Ayúdame a seleccionar una ruta de archivo diferente para el gráfico a través del menú desplegable a continuación
<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>