microsoft / PowerBI-visuals-RadarChart
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 37 units with 1,042 lines of code in units (70.3% of code).
    • 2 very long units (261 lines of code)
    • 4 long units (256 lines of code)
    • 10 medium size units (309 lines of code)
    • 8 small units (125 lines of code)
    • 13 very small units (91 lines of code)
25% | 24% | 29% | 11% | 8%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
ts25% | 24% | 29% | 11% | 8%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
src25% | 24% | 29% | 11% | 8%
Alternative Visuals
Longest Units
Top 20 longest units
Unit# linesMcCabe index# params
private drawChart()
in src/radarChart.ts
131 15 2
public static converter()
in src/radarChart.ts
130 32 5
function createTooltipData()
in src/tooltipBuilder.ts
71 14 3
private drawAxesLabels()
in src/radarChart.ts
70 4 2
public update()
in src/radarChart.ts
63 12 1
private shiftCollidedLabels()
in src/radarChart.ts
52 19 1
export function createTooltipInfo()
in src/tooltipBuilder.ts
46 11 4
constructor()
in src/radarChart.ts
40 4 1
private drawCircularSegments()
in src/radarChart.ts
36 3 1
private static getLabelsData()
in src/radarChart.ts
35 10 1
private createAxesLabels()
in src/radarChart.ts
32 7 0
private clear()
in src/radarChart.ts
27 1 0
private updateViewport()
in src/radarChart.ts
25 9 0
private shiftIntersectText()
in src/radarChart.ts
23 5 3
public enumerateDataPoint()
in src/radarChart.ts
23 5 0
private drawAxes()
in src/radarChart.ts
22 1 1
public static parseSettings()
in src/radarChart.ts
20 6 2
private calculateChartDomain()
in src/radarChart.ts
19 4 1
private renderLegend()
in src/radarChart.ts
19 4 0
16 4 1