How to draw circle/line/text, show tooltip and set zoom with D3.js v7

Recently I’ve tried using D3.js v7, but I couldn’t search how to show tooltip, set zoom and others easily. So, I leave how to define my environment as my note.
zuqqhi2