invert() reverses a continuous scale: give it a value from the output range, such as a pixel position, and it returns the corresponding input-domain value. section 7.3.2 section 13.4
Interactive year lookup
A streamgraph tooltip converts the mouse’s x-position into a year with Math.round(xScale.invert(xPosition)), then updates the year and sales breakdown.
