fix so graph get data from angular service