I did my entire history research by using 'Mermaid.js'...
As you can see there are about 2000+ lines and through this project, I became proficient in using that tool.
to learn about this fantastic tool, see their documentation: https://mermaid.js.org/intro/