Update dimple.js chart when select a new option
问题 <select id="cs" name="cs" > <option value = "HIV+TB" >HIV+TB</option> <option value = "TB">TB</option> </select> <button id="btn">Click Me</button> <div id="chartContainer"> <script type="text/javascript"> var dropdown = d3.select("#cs") var cs2 = dropdown.node().options[dropdown.node().selectedIndex].value; d3.csv("test.csv", function (data) { var svg = dimple.newSvg("#chartContainer", 590, 600); var myChart = new dimple.chart(svg, data1990); myChart.setBounds(105, 25, 475, 465) myChart