refactor completion rate graph