I'm using D3 to generate a bar chart (I adapted the code from this example). The labels I'm using on the x-axis are a couple of words long each, and since this makes all of the labels overlap I need to break these labels across lines. (It'll be fine if I can replace all of the spaces in each label with newlines.) I originally tried this by replacing the spaces with literal newlines (
) and set
{{#tags}}- {{label}}
{{/tags}}