move highcharts logic into new service class