-
vizulyJune 27, 2016 at 12:41 pm #6248
Hello Adam,
Unfortunately the SVG spec does not support line breaks natively for their text objects, which is what the Radial Progress uses.
In this case you will need to roll your own line break method. Here is a helpful link.
https://bl.ocks.org/mbostock/7555321
– Tom
AdamJune 27, 2016 at 1:35 pm #6250Thank you Tom! Other than that one issue I really like the library!
vizulyJune 27, 2016 at 1:40 pm #6251You are welcome Adam.
There is an experimental function in the vizuly source code you may want to play with. It can be found here:
src/svg/text.js
The function is:
vizuly.svg.text.wrap = function (text, value, lineHeight, width)
If you pass it the text object, the value, line height in pixels, and width in pixels, it will attempt to wrap it for you automatically.
This is experimental code, so use at your own risk!
– Tom
-
|
You must be logged in to reply to this topic.