projection graph into directive