microsoft / PowerBI-visuals-AsterPlot
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 77 units with 1,033 lines of code in units (63.1% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 5 medium complex units (246 lines of code)
    • 6 simple units (219 lines of code)
    • 66 very simple units (568 lines of code)
0% | 0% | 23% | 21% | 54%
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% | 23% | 21% | 54%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
src0% | 0% | 26% | 13% | 60%
src/services0% | 0% | 20% | 30% | 48%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
public getConvertedData()
in src/services/asterPlotConverterService.ts
98 18 1
public static getCategoricalValues()
in src/asterPlotColumns.ts
10 14 1
export function createTooltipInfo()
in src/tooltipBuilder.ts
52 14 5
export function createTooltipData()
in src/tooltipBuilder.ts
74 14 4
public static getCategoricalColumns()
in src/asterPlotColumns.ts
12 13 1
public renderLabels()
in src/services/dataRenderService.ts
28 10 2
25 10 0
private getArcSvg()
in src/services/dataRenderService.ts
24 8 3
public update()
in src/visual.ts
51 8 1
private calcTickOptions()
in src/services/dataRenderService.ts
25 7 1
private drawLabels()
in src/services/dataRenderService.ts
66 7 6
public static isDataValid()
in src/services/asterPlotConverterService.ts
7 5 1
6 5 4
3 5 1
public static getSeriesValues()
in src/asterPlotColumns.ts
4 4 1
private containsHighlights()
in src/services/asterPlotConverterService.ts
3 4 1
public renderArcs()
in src/services/dataRenderService.ts
28 4 2
private drawGrid()
in src/services/dataRenderService.ts
51 4 2
private getPieLayout()
in src/services/dataRenderService.ts
10 4 1
10 4 1