Connect stat retrieval to highcharts chart