chart directive and services for angular