Smart chart using highcharts.js to display data from csv