apparently the chart's width only depends on the screen width at the time of initial rendering