Added BarSwapper to reduce complexity of BarGraph code.