resize chart on viewport size change