fixed issues with display of both bar and pie charts