private getPieLayout()

in src/services/dataRenderService.ts [414:424]


    private getPieLayout(totalWeight: number): any {
        return d3.pie<AsterDataPoint>()
            .sort(null)
            .value((dataPoint: AsterDataPoint) => {
                if (!this.totalWeight || !dataPoint || isNaN(dataPoint.sliceWidth)) {
                    return 0;
                }

                return dataPoint.sliceWidth / totalWeight;
            });
    }