service (factory - for graphs)
refactored directive, using bound props instead of exprssions