This repository was archived by the owner on Dec 27, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed
dmriprepViewer/src/components Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change 4
4
<p class =" lead" >
5
5
Comparison to Group Eddy_Quad Statistics
6
6
</p >
7
- <p >Absolute Motion (z-score )</p >
7
+ <p >Absolute Motion (Z = {{numberFormatter(individual_abs_mot_z)}} )</p >
8
8
<b-progress class =" w-50 mx-auto" >
9
9
<b-progress-bar :value =" scaleZ(individual_abs_mot_z)"
10
10
:variant =" getColor(0, individual_abs_mot_z)" >
11
- z = {{individual_abs_mot_z}}
11
+ z = {{numberFormatter( individual_abs_mot_z) }}
12
12
</b-progress-bar >
13
13
</b-progress >
14
14
</div >
15
15
<div class =" mb-3" >
16
- <p >Relative Motion (z-score )</p >
16
+ <p >Relative Motion (Z = {{numberFormatter(individual_rel_mot_z)}} )</p >
17
17
<b-progress class =" w-50 mx-auto" >
18
18
<b-progress-bar :value =" scaleZ(individual_rel_mot_z)"
19
19
:variant =" getColor(0, individual_rel_mot_z)" >
20
- z = {{individual_rel_mot_z}}
20
+ z = {{numberFormatter( individual_rel_mot_z) }}
21
21
</b-progress-bar >
22
22
</b-progress >
23
23
</div >
@@ -42,6 +42,10 @@ export default {
42
42
const scaler = d3 .scaleLinear ().range ([0 , 100 ]).domain ([- 3 , 3 ]);
43
43
return scaler (val);
44
44
},
45
+ numberFormatter (val ) {
46
+ const formatter = d3 .format (' .3n' );
47
+ return formatter (val);
48
+ },
45
49
getColor (direction , zScore ) {
46
50
if (direction) {
47
51
console .log (zScore);
You can’t perform that action at this time.
0 commit comments