Round off the confidence values

This commit is contained in:
anuprulez
2017-07-07 13:58:49 +02:00
parent ee948063e1
commit 23f3a31d27
3 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -411,7 +411,7 @@ var PhylovizLayoutBase = Backbone.View.extend({
var d = this.__data__,
annotation = d.annotation || "None" ;
return d ? ( (d.name ? d.name + "<br/>" : "") + "Dist: " + d.dist + " <br/>Annotation1: " + annotation +
( d.bootstrap ? "<br/>Confidence level: " + ( 100 * d.bootstrap ) : "") ): "";
( d.bootstrap ? "<br/>Confidence level: " + ( Math.round( 100 * d.bootstrap ) ) : "") ): "";
})
.tooltip({'placement':'top', 'trigger' : 'hover'});
@@ -516,7 +516,7 @@ var PhylovizLinearView = PhylovizLayoutBase.extend({
nodeUpdate.select("text")
.style("fill-opacity", 1)
.style("font-size", fontSize)
.text(function(d) { return ( d.bootstrap ? ( 100 * d.bootstrap ) : d.name ) });
.text(function(d) { return ( d.bootstrap ? ( Math.round( 100 * d.bootstrap ) ) : d.name ) });
// ------- D3 EXIT --------
// Transition exiting nodes to the parent's new position.
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long