Moving graphs to a new directives module