Makes graph responsive