Skip to content

Commit ad1fbb3

Browse files
rueckstiesskangas
authored andcommitted
avoid rounding of percentage widths
1 parent dd2dfa9 commit ad1fbb3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/field-list/type-list.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,8 @@ var TypeListItem = View.extend(tooltipMixin, {
6363
probability_percentage: {
6464
deps: ['model.probability'],
6565
fn: function() {
66-
return numeral(this.model.probability).format('0.00%');
66+
// no rounding, use exact proportions for relative widths
67+
return this.model.probability * 100 + '%';
6768
}
6869
},
6970
tooltip_message: {

0 commit comments

Comments
 (0)