src/charts/donut.js
function drawLegend(obj) {
            if (obj.data) {

                svg.select('.donut-text')
                    .text(() => centeredTextFunction(obj.data))
                    .attr('dy', '.2em')
                    .attr('text-anchor', 'middle');

                svg.select('.donut-text').call(wrapText, legendWidth);
            }
        }
function drawLegend(obj) {
            if (obj.data) {

                svg.select('.donut-text')
                    .text(() => centeredTextFunction(obj.data))
                    .attr('dy', '.2em')
                    .attr('text-anchor', 'middle');

                svg.select('.donut-text').call(wrapText, legendWidth);
            }
        }
function drawLegend ( obj ) { if ( obj . data ) { svg . select ( '.donut-text' ) . text ( ( ) => centeredTextFunction ( obj . data ) ) . attr ( 'dy' , '.2em' ) . attr ( 'text-anchor' , 'middle' ) ; svg . select ( '.donut-text' ) . call ( wrapText , legendWidth ) ; } }
Draws the values on the donut slice inside the text element

@param  {Object} obj Data object
@private
Draws the values on the donut slice inside the text element