That is exactly it. A big part of the mental model is understanding the concept of tidy data from Hadley Wickham too.
I could not understand some of the design choices until I understood tidy data and not being much into R, I never ran across the idea previously.
Mike Bostock is so brilliant and has put in such an immense amount of work into d3 that if you even start trying to build your own data visualization javascript library you will end up leveraging d3 at some point as to not reinvent the wheel.
For me it also always had this moment when it „clicked“ just to disappear after not using it for a couple of months.