javascript - Highchart doesnt load when button is clicked -


my second highchart doesnt seem load. cant figure out did wrong.

http://jsfiddle.net/2k9k9/

$(document).ready(function() {  $("#b").click(function () {      $.get('dataset/verkeer.csv', function (data) { var series = preprocessdata(data); var = chart.series.length; while (i--) {     chart.series[0].remove(false); //remove prevbious series }  console.log('hoi');    = series.length; while(i--){      chart.addseries(series[i], true);    }  }); }); }); 

i used following example: http://jsfiddle.net/vdac6/


Comments

Popular posts from this blog

python - Subclassed QStyledItemDelegate ignores Stylesheet -

java - HttpClient 3.1 Connection pooling vs HttpClient 4.3.2 -

SQL: Divide the sum of values in one table with the count of rows in another -