microsoft / powerbi-visuals-enhancedscatter
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 85 units with 2,156 lines of code in units (72.2% of code).
    • 0 very long units (0 lines of code)
    • 13 long units (951 lines of code)
    • 25 medium size units (788 lines of code)
    • 17 small units (244 lines of code)
    • 30 very small units (173 lines of code)
0% | 44% | 36% | 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
ts0% | 44% | 36% | 11% | 8%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
src0% | 44% | 36% | 11% | 8%
Alternative Visuals
Longest Units
Top 20 longest units
Unit# linesMcCabe index# params
private createDataPoints()
in src/EnhancedScatterChart.ts
98 17 10
public parseData()
in src/EnhancedScatterChart.ts
92 10 4
private changeLabelMargins()
in src/EnhancedScatterChart.ts
87 21 10
private renderAxesLabels()
in src/EnhancedScatterChart.ts
83 7 7
public render()
in src/EnhancedScatterChart.ts
82 7 0
public init()
in src/EnhancedScatterChart.ts
78 4 1
private static getCustomSymbolType()
in src/EnhancedScatterChart.ts
72 9 1
private drawScatterMarkersUsingShapes()
in src/EnhancedScatterChart.ts
68 6 5
public calculateAxesProperties()
in src/EnhancedScatterChart.ts
66 4 1
private static getMetadata()
in src/EnhancedScatterChart.ts
63 6 2
private renderXAxis()
in src/EnhancedScatterChart.ts
56 6 4
private calculateMeasures()
in src/EnhancedScatterChart.ts
55 1 3
private drawScatterMarkersWithoutShapes()
in src/EnhancedScatterChart.ts
51 2 5
public calculateAxes()
in src/EnhancedScatterChart.ts
50 3 4
export function createTooltipData()
in src/tooltipBuilder.ts
49 10 2
private renderYAxis()
in src/EnhancedScatterChart.ts
43 6 4
private static getBubbleRadius()
in src/EnhancedScatterChart.ts
39 6 3
private updateAxis()
in src/EnhancedScatterChart.ts
39 4 0
export function createTooltipInfo()
in src/tooltipBuilder.ts
39 9 3
public bindCrosshairEvents()
in src/EnhancedScatterChart.ts
38 6 0