dist/lib/chart/zui.chart.js
function(easeDecimal) {
            var animDecimal = (easeDecimal) ? easeDecimal : 1;
            this.clear();
            // ZUI change begin
            var labelPositionMap;
            // ZUI change end
            helpers.each(this.segments, function(segment, index) {
                segment.transition({
                    circumference: this.calculateCircumference(segment.value),
                    outerRadius: this.outerRadius,
                    innerRadius: (this.outerRadius / 100) * this.options.percentageInnerCutout
                }, animDecimal);

                segment.endAngle = segment.startAngle + segment.circumference;

                // ZUI change begin
                if (!this.options.reverseDrawOrder) {
                    // ZUI change end
                    // ZUI change begin
                    segment.draw();
                    // ZUI change end
                }
                // ZUI change end

                if(index === 0) {
                    segment.startAngle = Math.PI * 1.5;
                }
                //Check to see if it's the last segment, if not get the next and update the start angle
                if(index < this.segments.length - 1) {
                    this.segments[index + 1].startAngle = segment.endAngle;
                }
            }, this);

            // ZUI change begin
            if (this.options.reverseDrawOrder) {
                helpers.each(this.segments.slice().reverse(), function(segment, index) {
                    segment.draw();
                }, this);
            }
            /// ZUI change end

            /// ZUI change begin
            if(this.options.scaleShowLabels) {
                var segmentsArray = this.segments.slice().sort(function(a,b){return b.value - a.value;});
                var labelPositionMap = {};
                helpers.each(segmentsArray, function(segment, index) {
                    if(segment.showLabel) this.drawLabel(segment, easeDecimal, labelPositionMap);
                }, this);
            }
            /// ZUI change end
        }
function(easeDecimal) {
            var animDecimal = (easeDecimal) ? easeDecimal : 1;
            this.clear();
            // ZUI change begin
            var labelPositionMap;
            // ZUI change end
            helpers.each(this.segments, function(segment, index) {
                segment.transition({
                    circumference: this.calculateCircumference(segment.value),
                    outerRadius: this.outerRadius,
                    innerRadius: (this.outerRadius / 100) * this.options.percentageInnerCutout
                }, animDecimal);

                segment.endAngle = segment.startAngle + segment.circumference;

                // ZUI change begin
                if (!this.options.reverseDrawOrder) {
                    // ZUI change end
                    // ZUI change begin
                    segment.draw();
                    // ZUI change end
                }
                // ZUI change end

                if(index === 0) {
                    segment.startAngle = Math.PI * 1.5;
                }
                //Check to see if it's the last segment, if not get the next and update the start angle
                if(index < this.segments.length - 1) {
                    this.segments[index + 1].startAngle = segment.endAngle;
                }
            }, this);

            // ZUI change begin
            if (this.options.reverseDrawOrder) {
                helpers.each(this.segments.slice().reverse(), function(segment, index) {
                    segment.draw();
                }, this);
            }
            /// ZUI change end

            /// ZUI change begin
            if(this.options.scaleShowLabels) {
                var segmentsArray = this.segments.slice().sort(function(a,b){return b.value - a.value;});
                var labelPositionMap = {};
                helpers.each(segmentsArray, function(segment, index) {
                    if(segment.showLabel) this.drawLabel(segment, easeDecimal, labelPositionMap);
                }, this);
            }
            /// ZUI change end
        }
function ( easeDecimal ) { var animDecimal = ( easeDecimal ) ? easeDecimal : 1 ; this . clear ( ) ; // ZUI change begin var labelPositionMap ; // ZUI change end helpers . each ( this . segments , function ( segment , index ) { segment . transition ( { circumference : this . calculateCircumference ( segment . value ) , outerRadius : this . outerRadius , innerRadius : ( this . outerRadius / 100 ) * this . options . percentageInnerCutout } , animDecimal ) ; segment . endAngle = segment . startAngle + segment . circumference ; // ZUI change begin if ( ! this . options . reverseDrawOrder ) { // ZUI change end // ZUI change begin segment . draw ( ) ; // ZUI change end } // ZUI change end if ( index === 0 ) { segment . startAngle = Math . PI * 1.5 ; } //Check to see if it's the last segment, if not get the next and update the start angle if ( index < this . segments . length - 1 ) { this . segments [ index + 1 ] . startAngle = segment . endAngle ; } } , this ) ; // ZUI change begin if ( this . options . reverseDrawOrder ) { helpers . each ( this . segments . slice ( ) . reverse ( ) , function ( segment , index ) { segment . draw ( ) ; } , this ) ; } /// ZUI change end /// ZUI change begin if ( this . options . scaleShowLabels ) { var segmentsArray = this . segments . slice ( ) . sort ( function ( a , b ) { return b . value - a . value ; } ) ; var labelPositionMap = { } ; helpers . each ( segmentsArray , function ( segment , index ) { if ( segment . showLabel ) this . drawLabel ( segment , easeDecimal , labelPositionMap ) ; } , this ) ; } /// ZUI change end }
ZUI change end
ZUI change end