Wrapping Text in D3
You can modify Mike Bostock’s “Wrapping Long Labels” example to add <tspan> elements to your <text> nodes. There are two major changes required to add wrapped text to your nodes. I didn’t delve into having the text update its position during transitions, but it shouldn’t be too hard to add. The first is to add … Read more