refactored some axis code
removed GraphElement service

replaced with graph directive scope