javascript - Highchart doesnt load when button is clicked -
my second highchart doesnt seem load. cant figure out did wrong.
$(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
Post a Comment