Thank you so much! I’m just starting to learn JavaScript and D3, so your comment means a lot. I generated the main shapes with the venn package in R (but for a 2 or 3 set venn you might as well draw these by hand). Then I used the pathfinder tool in Adobe Illustrator to split the main shapes into smaller segments. Finally I saved it as SVG and used the d attributes and viewBox from this file.
Ah, that makes sense, thank you! I've previously tried to figure out how to highlight overlapping areas on mouseover, and had got as far as realizing I'd need to make separate paths for them, so it's really useful to know what your approach was.
Wow, what an incredible result! I love the transition at the beginning and how you included all the individual stories as dots. I'm glad this notebook helped a little. Thank you for the follow-up.