This example, using satirical data from The Onion, demonstrates how to wrap long axis labels to fit on multiple lines.
- Modified wrap to acept text wrap width as a function of data and index.
- Made bar widths proportional to values.
Note: The second point is not recommended practice but serves to ilustrate the variable wrap feature!
Updated to use D3v5