rest service and chart