made graph responsive to mobile view