generate histogram

generate histogram