reorganize the bar chart branch for branch merging