This example, using satirical data from The Onion, demonstrates how to wrap long axis labels to fit on multiple lines.
Note: The second point is not recommended practice but serves to ilustrate the variable wrap feature!
Updated to use D3v5
https://cdnjs.cloudflare.com/ajax/libs/d3/5.6.0/d3.min.js