src/charts/donut.js
function drawEmptySlice() {

            if (slices) {
                svg.selectAll('g.arc').remove();
            }
            slices = svg.select('.chart-group')
                .selectAll('g.arc')
                .data(layout(emptyDonutData));

            let newSlices = slices.enter()
                .append('g')
                  .each(storeAngle)
                  .each(reduceOuterRadius)
                  .classed('arc', true)
                  .append('path');

            newSlices.merge(slices)
                .attr('fill', emptyDataConfig.emptySliceColor)
                .attr('d', shape)
                .transition()
                .ease(ease)
                .duration(pieDrawingTransitionDuration)
                .attrTween('d', tweenLoading);

            slices.exit().remove();
        }
function drawEmptySlice() {

            if (slices) {
                svg.selectAll('g.arc').remove();
            }
            slices = svg.select('.chart-group')
                .selectAll('g.arc')
                .data(layout(emptyDonutData));

            let newSlices = slices.enter()
                .append('g')
                  .each(storeAngle)
                  .each(reduceOuterRadius)
                  .classed('arc', true)
                  .append('path');

            newSlices.merge(slices)
                .attr('fill', emptyDataConfig.emptySliceColor)
                .attr('d', shape)
                .transition()
                .ease(ease)
                .duration(pieDrawingTransitionDuration)
                .attrTween('d', tweenLoading);

            slices.exit().remove();
        }
function drawEmptySlice ( ) { if ( slices ) { svg . selectAll ( 'g.arc' ) . remove ( ) ; } slices = svg . select ( '.chart-group' ) . selectAll ( 'g.arc' ) . data ( layout ( emptyDonutData ) ) ; let newSlices = slices . enter ( ) . append ( 'g' ) . each ( storeAngle ) . each ( reduceOuterRadius ) . classed ( 'arc' , true ) . append ( 'path' ) ; newSlices . merge ( slices ) . attr ( 'fill' , emptyDataConfig . emptySliceColor ) . attr ( 'd' , shape ) . transition ( ) . ease ( ease ) . duration ( pieDrawingTransitionDuration ) . attrTween ( 'd' , tweenLoading ) ; slices . exit ( ) . remove ( ) ; }
Draw an empty slice
@private
Draw an empty slice