Skip to content

Commit

Permalink
Sankey tooltip: if link value passed as string, don't round to integer (
Browse files Browse the repository at this point in the history
  • Loading branch information
octaviancorlade authored and christophergandrud committed Dec 26, 2017
1 parent 656d9e2 commit 9c0a9c9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion inst/htmlwidgets/sankeyNetwork.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,10 @@ HTMLWidgets.widget({


var formatNumber = d3.format(",.0f"),
format = function(d) { return formatNumber(d); }
format = function(d) {
if (typeof d === "string") return d;
return formatNumber(d);
}

// create d3 sankey layout
sankey
Expand Down

0 comments on commit 9c0a9c9

Please sign in to comment.