Added resposiveness to graph directive