Added code to fill in missing data and create Highcharts-friendly series