redraw chart on resize and when resume dashboard