microsoft / PowerBI-visuals-AsterPlot
Unit Size

The distribution of size of units (measured in lines of code).

Intro
  • Unit size measurements show the distribution of size of units of code (methods, functions...).
  • Units are classified in four categories based on their size (lines of code): 1-20 (small units), 20-50 (medium size units), 51-100 (long units), 101+ (very long units).
  • You should aim at keeping units small (< 20 lines). Long units may become "bloaters", code that have increased to such gargantuan proportions that they are hard to work with.
Learn more...
Unit Size Overall
  • There are 77 units with 1,033 lines of code in units (63.1% of code).
    • 0 very long units (0 lines of code)
    • 6 long units (392 lines of code)
    • 7 medium size units (192 lines of code)
    • 12 small units (166 lines of code)
    • 52 very small units (283 lines of code)
0% | 37% | 18% | 16% | 27%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
ts0% | 37% | 18% | 16% | 27%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
src/services0% | 45% | 22% | 10% | 21%
src0% | 31% | 15% | 20% | 32%
Alternative Visuals
Longest Units
Top 20 longest units
Unit# linesMcCabe index# params
public getConvertedData()
in src/services/asterPlotConverterService.ts
98 18 1
export function createTooltipData()
in src/tooltipBuilder.ts
74 14 4
private drawLabels()
in src/services/dataRenderService.ts
66 7 6
export function createTooltipInfo()
in src/tooltipBuilder.ts
52 14 5
private drawGrid()
in src/services/dataRenderService.ts
51 4 2
public update()
in src/visual.ts
51 8 1
constructor()
in src/visual.ts
36 3 1
public renderArcs()
in src/services/dataRenderService.ts
28 4 2
public renderLabels()
in src/services/dataRenderService.ts
28 10 2
26 3 2
private calcTickOptions()
in src/services/dataRenderService.ts
25 7 1
25 10 0
private getArcSvg()
in src/services/dataRenderService.ts
24 8 3
public drawCenterText()
in src/services/dataRenderService.ts
19 2 1
public enumeratePies()
in src/visual.ts
18 3 1
private drawOuter()
in src/services/dataRenderService.ts
17 2 1
public bindEvents()
in src/behavior.ts
15 1 2
14 2 3
private buildTwoMeasuresTooltip()
in src/services/asterPlotConverterService.ts
13 2 4
13 2 0