src/charts/donut.js
function wrapText(text, legendWidth) {
            let fontSize = externalRadius / 5;

            textHelper.wrapText.call(null, 0, fontSize, legendWidth, text.node());
        }
function wrapText(text, legendWidth) {
            let fontSize = externalRadius / 5;

            textHelper.wrapText.call(null, 0, fontSize, legendWidth, text.node());
        }
function wrapText ( text , legendWidth ) { let fontSize = externalRadius / 5 ; textHelper . wrapText . call ( null , 0 , fontSize , legendWidth , text . node ( ) ) ; }
Utility function that wraps a text into the given width

@param  {D3Selection} text         Text to write
@param  {Number} legendWidth Width of the container
@private
Utility function that wraps a text into the given width