convert histogram to % distribution