This stratigraphic profile shows the measured depth (MD) of the rock layers (strata) at four locations.
We can't use d3.stack
for this stratigraphic profile because the rock layers are not the same at each location. Instead, we derive top
and bottom
properties for each element in each stack.* We then create a group for each stack and, within each group, create a rectangle for each element.
*This is necessary because the data have an unusual structure. For each well, rows are in depth order. The first row is the top depth; subsequent rows are offsets from the previous row.