fix: barchart and legend layout