microsoft / powerbi-visuals-utils-chartutils
File Size

The distribution of size of files (measured in lines of code).

Intro
  • File size measurements show the distribution of size of files.
  • Files are classified in four categories based on their size (lines of code): 1-100 (very small files), 101-200 (small files), 201-500 (medium size files), 501-1000 (long files), 1001+(very long files).
  • It is a good practice to keep files small. Long files may become "bloaters", code that have increased to such gargantuan proportions that they are hard to work with.
Learn more...
File Size Overall
  • There are 34 files with 4,790 lines of code.
    • 1 very long files (1,041 lines of code)
    • 1 long files (798 lines of code)
    • 4 medium size files (1,292 lines of codeclsfd_ftr_w_mp_ins)
    • 7 small files (993 lines of code)
    • 21 very small files (666 lines of code)
21% | 16% | 26% | 20% | 13%
Legend:
1001+
501-1000
201-500
101-200
1-100


explore: zoomable circles | sunburst | 3D view
File Size per Extension
1001+
501-1000
201-500
101-200
1-100
ts21% | 16% | 27% | 20% | 13%
less0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
src/axis76% | 0% | 0% | 23% | <1%
src/legend0% | 70% | 0% | 12% | 17%
src/dataLabel0% | 0% | 65% | 26% | 8%
src/label0% | 0% | 58% | 24% | 16%
ROOT0% | 0% | 0% | 0% | 100%
src/legend/behavior0% | 0% | 0% | 0% | 100%
src0% | 0% | 0% | 0% | 100%
src/legend/styles0% | 0% | 0% | 0% | 100%
src/dataLabel/styles0% | 0% | 0% | 0% | 100%
src/styles0% | 0% | 0% | 0% | 100%
Longest Files (Top 34)
File# lines# units
axis.ts
in src/axis
1041 50
svgLegend.ts
in src/legend
798 26
dataLabelUtils.ts
in src/dataLabel
389 20
labelLayout.ts
in src/label
377 11
dataLabelManager.ts
in src/dataLabel
287 11
dataLabelRectPositioner.ts
in src/label
239 14
labelLayoutStrategy.ts
in src/axis
195 6
dataLabelInterfaces.ts
in src/dataLabel
157 -
dataLabelPointPositioner.ts
in src/label
149 11
interactiveLegend.ts
in src/legend
145 11
axisInterfaces.ts
in src/axis
120 -
dataLabelArrangeGrid.ts
in src/dataLabel
117 4
newDataLabelUtils.ts
in src/label
110 6
labelUtils.ts
in src/label
94 4
locationConverter.ts
in src/dataLabel
82 10
karma.conf.ts
in root
77 -
legendInterfaces.ts
in src/legend
66 -
legend.ts
in src/legend
52 4
legendBehavior.ts
in src/legend/behavior
45 2
index.ts
in src
38 -
markers.ts
in src/legend
38 2
opacityLegendBehavior.ts
in src/legend/behavior
32 1
legendData.ts
in src/legend
30 1
familyInfo.ts
in src/label
27 2
fontProperties.ts
in src/label
27 1
index.ts
in src/label
14 -
units.ts
in src/label
10 3
legend.less
in src/legend/styles
10 -
legendPosition.ts
in src/legend
8 -
dataLabel.less
in src/dataLabel/styles
6 -
axisStyle.ts
in src/axis
3 -
dataLabelStyle.ts
in src/dataLabel
3 -
axisScale.ts
in src/axis
2 -
style.less
in src/styles
2 -
Files With Most Units (Top 20)
File# lines# units
axis.ts
in src/axis
1041 50
svgLegend.ts
in src/legend
798 26
dataLabelUtils.ts
in src/dataLabel
389 20
dataLabelRectPositioner.ts
in src/label
239 14
dataLabelManager.ts
in src/dataLabel
287 11
dataLabelPointPositioner.ts
in src/label
149 11
labelLayout.ts
in src/label
377 11
interactiveLegend.ts
in src/legend
145 11
locationConverter.ts
in src/dataLabel
82 10
labelLayoutStrategy.ts
in src/axis
195 6
newDataLabelUtils.ts
in src/label
110 6
dataLabelArrangeGrid.ts
in src/dataLabel
117 4
labelUtils.ts
in src/label
94 4
legend.ts
in src/legend
52 4
units.ts
in src/label
10 3
familyInfo.ts
in src/label
27 2
legendBehavior.ts
in src/legend/behavior
45 2
markers.ts
in src/legend
38 2
fontProperties.ts
in src/label
27 1
opacityLegendBehavior.ts
in src/legend/behavior
32 1
Files With Long Lines (Top 13)

There are 13 files with lines longer than 120 characters. In total, there are 103 long lines.

File# lines# units# long lines
axis.ts
in src/axis
1041 50 28
dataLabelUtils.ts
in src/dataLabel
389 20 16
dataLabelManager.ts
in src/dataLabel
287 11 14
svgLegend.ts
in src/legend
798 26 14
dataLabelRectPositioner.ts
in src/label
239 14 11
dataLabelPointPositioner.ts
in src/label
149 11 6
labelUtils.ts
in src/label
94 4 4
newDataLabelUtils.ts
in src/label
110 6 3
labelLayoutStrategy.ts
in src/axis
195 6 2
labelLayout.ts
in src/label
377 11 2
familyInfo.ts
in src/label
27 2 1
legendBehavior.ts
in src/legend/behavior
45 2 1
interactiveLegend.ts
in src/legend
145 11 1