added dynamic rect resizing to barchart text containers