microsoft / powerbi-visuals-pulsechart
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 88 units with 1,714 lines of code in units (72.0% of code).
    • 1 very complex units (214 lines of code)
    • 1 complex units (222 lines of code)
    • 4 medium complex units (174 lines of code)
    • 13 simple units (282 lines of code)
    • 69 very simple units (822 lines of code)
12% | 12% | 10% | 16% | 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
ts12% | 12% | 10% | 16% | 47%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
src12% | 12% | 10% | 16% | 47%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
214 72 4
private drawTooltips()
in src/visual.ts
222 30 1
public render()
in src/animator.ts
33 15 0
33 14 1
51 13 5
private drawDots()
in src/visual.ts
57 12 1
private renderYAxis()
in src/visual.ts
26 10 2
private renderXAxis()
in src/visual.ts
71 9 2
20 8 4
41 7 8
public update()
in src/visual.ts
31 7 1
10 6 2
public get popupHeight()
in src/visual.ts
7 6 0
private getYAxisScales()
in src/visual.ts
23 6 1
public findNextPoint()
in src/visual.ts
14 6 1
public findPrevPoint()
in src/visual.ts
14 6 1
10 6 1
9 6 1
public isPopupShow()
in src/visual.ts
6 6 1
25 5 2