fixed bug at stackbar chart on resize