EDIT: I've added a clarification to the question below.
On Wikipedia, it says that Lebesgue integration corresponds to "partitioning the range".
Under the section, "Towards a formal definition," of this page, it shows how we can integrate a function $f$ by defining a new function $f^*$ from the range of $f$ to the measure of a subset of the domain of $f$. The integral is then the simple Riemann integral of $f^*$ (now over the range of $f$ instead of its domain).
However, in the book, "Measures, Integrals, and Martingales," the Lebesgue measure of $f$ is constructed using simple functions their supremum. (This also is done in the next part of the Wikipedia article.)
It seems to me that this is not at all a partitioning of the range of $f$, but still a partitioning of the domain, but now in a different way than with the Riemann integral, namely by using measures. A simple function is simply a partitioning of the domain, where the difference with the Riemann integral in the case of $f:\mathbb \to \mathbb R$ is that we now use a measure (rather than simply "$x_i-x_{i-1}$") to measure the width of a bar, and use any arbitrary constant (rather than one equal to a value of $f(x), x_i<x<x_{i-1}$. This allows for the Lebesgue integral to be more generally applicable.
There is therefore a difference between the Lebesgue integral and the Riemann integral, but this difference seems to me not to be that the Lebesgue integral somehow partitions the range. It still partitions the domain.
So what am I missing? And why does Wikipedia claim that Lebesgue integral partitions the range?
Edit: Just a maybe more clarifying formulation of the question: is the $f^*$ approach described in Wikipedia actually considered to be a "Lebesgue integral"? If so, how is it equivalent to the "supremum of simple function smaller than $f$" approach?
This definition of the Lebesgue integral (of a positive function) does not make any reference to a partition of the range:
$$ \int u\,d\mu := \sup \{I_{\mu}(g)\,:\,g\leqslant \mu,g\in \mathcal{E}^+\}\in [0,\infty] $$
$$ I_{\mu}(f) := \sum_{j=0}^{M}y_j \,\mu(A_j)\in[0,\infty] $$
EDIT: I don't really think the answers are satisfying. To show better what my question is: This is an example of a Lebesgue simple function approximation, which DOES NOT partition the range:
This in my view correctly describes the Lebesgue integral:
On the other hand, here is a picture of what supposedly Lebesgue integration is according to wikipedia: Supposedly, the Lebesgue integral partitions the range, and then sums the area of the horizontal rectangles in that range:
This in my view FALSELY describes the Lebesgue integral: (BLUE=Riemann, RED =Lebesgue, supposedly):
This does not actually correspond with the definition of the Lebesgue integral because the Lebesgue integral still calculates the area of rectangles by multiplying the measure on the domain by a height, which is depicted in the Blue picture, not the red picture. On the other hand, the red picture corresponds perfectly with the $f^*$ approach given on Wikipedia.
Questions:
Am I right that the red picture of Lebesgue integration is incorrect?
Am I right that the $f^*$ approach is captured by the red picture, and is therefore different from Lebesgue integration? (Note, I am not claiming that the simple function definition is not equivalent to the $f^*$ approach, in the sense that they always give the same answer. I'm simply claiming that their "algorithm" has a different approach, and that the simple function approach is in terms of algorithm closer to Riemann than to $f^*$.)