microsoft / PowerBI-visuals-MultiKPI
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 202 units with 2,956 lines of code in units (66.9% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 8 medium complex units (426 lines of code)
    • 21 simple units (562 lines of code)
    • 173 very simple units (1,968 lines of code)
0% | 0% | 14% | 19% | 66%
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% | 14% | 19% | 66%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
src/visualComponent0% | 0% | 13% | 20% | 65%
src/converter0% | 0% | 28% | 18% | 53%
src0% | 0% | 0% | 36% | 63%
src/settings0% | 0% | 0% | 5% | 94%
src/services0% | 0% | 0% | 0% | 100%
src/utils0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
private processData()
in src/converter/data/dataConverter.ts
85 24 4
public convert()
in src/converter/data/dataSmooth.ts
57 16 1
private applyScale()
in src/converter/data/dataConverter.ts
26 14 2
private onCurrentDataPointIndexChange()
in src/visualComponent/sparkline/sparklineComponent.ts
20 14 1
private getViewportSize()
in src/converter/data/dataConverter.ts
16 13 1
public render()
in src/visualComponent/mainChart/hoverLabelComponent.ts
78 13 1
private renderComponent()
in src/visualComponent/sparkline/lineComponent.ts
78 11 1
private renderStaleData()
in src/visualComponent/subtitleWarningComponent.ts
66 11 3
private onCurrentDataPointIndexChange()
in src/visualComponent/sparkline/lineComponent.ts
50 10 1
public findClosestDataPointByDate()
in src/converter/data/dataConverter.ts
24 8 3
public isDataViewValid()
in src/converter/data/dataConverter.ts
11 8 1
private getSettings()
in src/settings/settingsBase.ts
18 8 1
public render()
in src/visualComponent/mainChart/chartLabelComponent.ts
56 8 1
public render()
in src/visualComponent/rootComponent.ts
25 8 1
private onCurrentDataPointIndexChange()
in src/visualComponent/sparkline/svgComponent.ts
32 8 1
private getFormattedTooltip()
in src/converter/data/dataConverter.ts
17 7 1
public update()
in src/multiKpi.ts
26 7 1
private getOnChartChangeDelay()
in src/visualComponent/rootComponent.ts
14 7 2
public render()
in src/visualComponent/sparkline/sparklineComponent.ts
24 7 1
private getFontSizeByViewportSize()
in src/visualComponent/sparkline/sparklineComponent.ts
23 7 1