We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 92bad46 commit ecf0d51Copy full SHA for ecf0d51
js/elements.js
@@ -49,10 +49,15 @@ function get_domrect(METRIC) {
49
if (oDiffs[m].length > 1) {multiples.push(oDiffs[m].join(' + '))}
50
}
51
console.log(k, oDiffs, multiples, max)
52
- max = (max > 0.01 ? '>' : '<') + ' 0.01'
+ if (max > 0.1) {max = '> ±0.1'
53
+ } else {
54
+ // note max is always positive
55
+ var z = -Math.floor(Math.log10(max) + 1) // leading zeros
56
+ max = '< ±0.' + '0'.repeat(z-1) + '1'
57
+ }
58
value = {
59
'properties': aProps.length == 8 ? 'all' : aProps.join(', '),
- 'range': '± ' + max,
60
+ 'range': max,
61
'same': (multiples.length ? multiples : 'none'),
62
'total': Object.keys(oDiffs).length
63
0 commit comments