Greetings, I'm relatively new to coding but have made progress so far. I'm eager to learn how to wrap my text within a circle, ensuring it stays within the boundaries of the circular shape. Any guidance or tips on achieving this would be greatly appreciated. The code snippet can be accessed via the Google Drive link provided below - best viewed with Sublime Text.
Click here for the HTML file that can be opened using Sublime Text
Image showing text overflowing out of a circle versus how it should look when properly wrapped inside the circle.
Ensure to run the page in full screen for optimal viewing experience.
// JavaScript code snippet goes here...
// CSS styles for the node and label elements go here...
<script src="https://d3js.org/d3.v4.min.js"></script>
<svg width="960" height="960"></svg>