Calculate points for Highcharts.