Histograms don't always have to be equi-width. Here are a few examples of histograms with unequal bin widths. In this example we draw the bin thresholds from different distributions or construct them in a way that the number of elements in each bin are roughly equal.
Based on the histogram example.
https://d3js.org/d3.v4.min.js