making gravity chart canvas size responsive