microsoft / PowerBI-visuals-Tornado
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 56 units with 1,304 lines of code in units (75.6% of code).
    • 0 very long units (0 lines of code)
    • 6 long units (413 lines of code)
    • 16 medium size units (586 lines of code)
    • 10 small units (163 lines of code)
    • 24 very small units (142 lines of code)
0% | 31% | 44% | 12% | 10%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
ts0% | 31% | 44% | 12% | 10%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
src0% | 31% | 44% | 12% | 10%
Alternative Visuals
Longest Units
Top 20 longest units
Unit# linesMcCabe index# params
public static CONVERTER()
in src/TornadoChart.ts
95 18 5
export function createTooltipData()
in src/tooltipBuilder.ts
75 14 4
tooltipData: buildTooltip()
in src/TornadoChart.ts
68 6 1
private static parseSettings()
in src/TornadoChart.ts
68 3 3
export function createTooltipInfo()
in src/tooltipBuilder.ts
54 14 6
private renderCategories()
in src/TornadoChart.ts
53 4 0
public static PARSE_SERIES()
in src/TornadoChart.ts
49 21 7
public renderY()
in src/TornadoChartScrolling.ts
46 12 2
private renderLabels()
in src/TornadoChart.ts
44 3 2
private renderColumns()
in src/TornadoChart.ts
43 4 2
constructor()
in src/TornadoChart.ts
42 2 1
private getLabelData()
in src/TornadoChart.ts
40 5 6
private renderScrollbar()
in src/TornadoChartScrolling.ts
40 2 6
public update()
in src/TornadoChart.ts
36 15 1
private renderLegend()
in src/TornadoChart.ts
36 7 0
private calculateDataPoints()
in src/TornadoChart.ts
34 8 1
private static getTextData()
in src/TornadoChart.ts
32 5 5
private renderWithScrolling()
in src/TornadoChart.ts
32 9 3
private enumerateLegend()
in src/TornadoChart.ts
32 1 1
public enumerateObjectInstances()
in src/TornadoChart.ts
31 9 1