curran / screencasts

Code that goes along with my screencasts.
https://www.youtube.com/playlist?list=PL9yYRbwpkyktAZaphR2UfeYpgNGnIqjs9
MIT License
2.62k stars 2.03k forks source link

Labels not getting displayed #18

Open utkarsharma2 opened 7 years ago

utkarsharma2 commented 7 years ago

Hi Curran,

I saw your video on introduction to D3, nice work. I used one of your graphs in my project link, found a problem that when the name of the labels are large they are not getting displayed. As I'm new to d3 was unable to fix it, maybe we can break the labels in multiple line while adjusting the width of bars or can increase the width of labels section and reduce the size of scale but even then we would have an max width for labels.

curran commented 7 years ago

If you're fine with text wrapping maybe try https://github.com/d3plus/d3plus-text