convert from histogram to bar plot for level distribution