microsoft / PowerBI-Visuals-HorizontalBarChart
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 52 units with 1,042 lines of code in units (79.5% of code).
    • 0 very complex units (0 lines of code)
    • 1 complex units (315 lines of code)
    • 2 medium complex units (166 lines of code)
    • 5 simple units (192 lines of code)
    • 44 very simple units (369 lines of code)
0% | 30% | 15% | 18% | 35%
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% | 30% | 15% | 18% | 35%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
src0% | 30% | 15% | 18% | 35%
src/localization0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
public update()
in src/barChart.ts
315 38 1
public addTooltip()
in src/tooltipServiceWrapper.ts
92 15 2
function visualTransform()
in src/barChart.ts
74 11 2
119 9 1
function getTextPositionX()
in src/barChart.ts
17 8 2
29 6 5
function getTextPositionY()
in src/barChart.ts
18 6 2
function getHeadPositionX()
in src/barChart.ts
9 6 2
function getOverlapIndex()
in src/barChart.ts
11 5 1
21 5 2
export function getLocalizedString()
in src/localization/localizationHelper.ts
4 5 2
export function getCategoricalObjectValue()
in src/objectEnumerationUtility.ts
21 5 5
14 4 2
private getTooltipData()
in src/barChart.ts
19 4 1
15 4 1
export function getValue()
in src/objectEnumerationUtility.ts
12 4 4
private getCoordinates()
in src/tooltipServiceWrapper.ts
15 4 2
8 3 2
9 3 2
private canDisplayTooltip()
in src/tooltipServiceWrapper.ts
10 3 1