more polishing for dynamic label rect size in barchart