Skip to content

Instantly share code, notes, and snippets.

View jml6m's full-sized avatar

Joseph Lewkovich jml6m

  • United States
View GitHub Profile
@jml6m
jml6m / README.md
Last active September 25, 2023 08:55 — forked from mbostock/.block

This example, using satirical data from The Onion, demonstrates how to wrap long axis labels to fit on multiple lines.

UPDATE: In order to make this code work for horizontal bar charts, the code for setting the 'y' attribute must be used when setting the 'x' attribute. I've included only the wrap function in this fork.