Added service layer for charts