src/charts/donut.js
/**
         * Generates animations with tweens depending on the attributes given
         *
         * @param  {Number} outerRadius Final outer radius value
         * @param  {Number} delay       Delay of animation
         * @return {Function}           Function that when called will tween the element
         * @private
         */
Generates animations with tweens depending on the attributes given
@param  {Number} outerRadius Final outer radius value
@param  {Number} delay       Delay of animation
@return {Function}           Function that when called will tween the element
@private
Generates animations with tweens depending on the attributes given @param { Number } outerRadius Final outer radius value @param { Number } delay Delay of animation @return { Function } Function that when called will tween the element @private
function tweenGrowthFactory(outerRadius, delay) {
            return function() {
                d3Selection.select(this)
                    .transition()
                    .delay(delay)
                    .attrTween('d', function(d) {
                        let i = d3Interpolate.interpolate(d.outerRadius, outerRadius);
                        return (t) => {
                            d.outerRadius = i(t);
                            return shape(d);
                        };
                    });
            };
        }
function tweenGrowthFactory ( outerRadius , delay ) { return function ( ) { d3Selection . select ( this ) . transition ( ) . delay ( delay ) . attrTween ( 'd' , function ( d ) { let i = d3Interpolate . interpolate ( d . outerRadius , outerRadius ) ; return ( t ) => { d . outerRadius = i ( t ) ; return shape ( d ) ; } ; } ) ; } ; }
Generates animations with tweens depending on the attributes given
 @param  {Number} outerRadius Final outer radius value
 @param  {Number} delay       Delay of animation
 @return {Function}           Function that when called will tween the element
 @private
Generates animations with tweens depending on the attributes given @param { Number } outerRadius Final outer radius value @param { Number } delay Delay of animation @return { Function } Function that when called will tween the element @private