Stacked Borehole
This example visualizes a geological borehole as a vertical stacked bar chart, showing distinct subsurface layers including Topsoil, Peat, Till, and Sandstone, along with a blue line indicating the water table. Depth ranges appear dynamically in a tooltip on mouseover, providing context for each layer. The visualization uses D3 v5’s `select` API to append SVG shapes and text, and implements custom tooltip behavior via D3 transitions. Layer rectangles are colored to represent different materials, and the water level is marked with two blue lines, creating a simple cross-section of the earth.