Weighted bins in a distribution hist plot
问题 I'm looking for a way to plot a distribution histogram, with the y-axis representing the total number of items for each bin (and not just the count). Example on the charts below: On the left, there are 55 agencies who sold between 20-30 houses On the right, the agencies having sold between 20-30 houses represent 1100 houses sold It's not as trivial as it looks because one can't simply multiply each bin's count by the bin's value (maybe in the 20-30 bin, there are 54 agencies who sold 21 are 1