Added bar vertical alignment and opacity handling.