microsoft / powerbi-visuals-enhancedscatter
Conditional Complexity

The distribution of complexity of units (measured with McCabe index).

Intro
  • Conditional complexity (also called cyclomatic complexity) is a term used to measure the complexity of software. The term refers to the number of possible paths through a program function. A higher value ofter means higher maintenance and testing costs (infosecinstitute.com).
  • Conditional complexity is calculated by counting all conditions in the program that can affect the execution path (e.g. if statement, loops, switches, and/or operators, try and catch blocks...).
  • Conditional complexity is measured at the unit level (methods, functions...).
  • Units are classified in four categories based on the measured McCabe index: 1-5 (simple units), 6-10 (medium complex units), 11-25 (complex units), 26+ (very complex units).
Learn more...
Conditional Complexity Overall
  • There are 85 units with 2,156 lines of code in units (72.2% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 3 medium complex units (217 lines of code)
    • 19 simple units (914 lines of code)
    • 63 very simple units (1,025 lines of code)
0% | 0% | 10% | 42% | 47%
Legend:
51+
26-50
11-25
6-10
1-5
Alternative Visuals
Conditional Complexity per Extension
51+
26-50
11-25
6-10
1-5
ts0% | 0% | 10% | 42% | 47%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
src0% | 0% | 10% | 42% | 47%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
private changeLabelMargins()
in src/EnhancedScatterChart.ts
87 21 10
private createDataPoints()
in src/EnhancedScatterChart.ts
98 17 10
private changeSettingsAndMetadata()
in src/EnhancedScatterChart.ts
32 11 4
public parseData()
in src/EnhancedScatterChart.ts
92 10 4
export function createTooltipData()
in src/tooltipBuilder.ts
49 10 2
private static getCustomSymbolType()
in src/EnhancedScatterChart.ts
72 9 1
private parseLegend()
in src/EnhancedScatterChart.ts
31 9 7
export function createTooltipInfo()
in src/tooltipBuilder.ts
39 9 3
public addElementToDOM()
in src/EnhancedScatterChart.ts
30 8 2
private static getDefinedNumberByCategoryId()
in src/EnhancedScatterChart.ts
11 7 3
public render()
in src/EnhancedScatterChart.ts
82 7 0
private renderAxesLabels()
in src/EnhancedScatterChart.ts
83 7 7
private parseSettings()
in src/EnhancedScatterChart.ts
33 6 2
private static getSizeRangeForGroups()
in src/EnhancedScatterChart.ts
21 6 2
private static getMetadata()
in src/EnhancedScatterChart.ts
63 6 2
private static getBubbleRadius()
in src/EnhancedScatterChart.ts
39 6 3
public bindCrosshairEvents()
in src/EnhancedScatterChart.ts
38 6 0
public updateCrosshair()
in src/EnhancedScatterChart.ts
32 6 2
private renderXAxis()
in src/EnhancedScatterChart.ts
56 6 4
private renderYAxis()
in src/EnhancedScatterChart.ts
43 6 4