Move graph to shared views