Quartz / Chartbuilder

A front-end charting application that facilitates easy creation of simple beautiful charts
http://quartz.github.io/Chartbuilder
MIT License
2.1k stars 354 forks source link

Is there a way to wrap tspan #235

Closed roberthuttinger closed 8 years ago

roberthuttinger commented 8 years ago

Making tspan word wrap? Currently the text falls off the edge of the planet. Still looking and experimenting...

yanofsky commented 8 years ago

Hi @roberthuttinger Are you talking about using the functionality on this branch or something else? https://github.com/Quartz/Chartbuilder/tree/golfecholima-subtitle

roberthuttinger commented 8 years ago

created a second subtitle that allows a second line of text. It looks like breaking ene element into multiple tspans would require some serious shim code.

yanofsky commented 8 years ago

It's not so hard. Take a look at this https://bl.ocks.org/mbostock/7555321