better resizing of barcharts