add abstractions to barcharts