Responsive behaviour for graph