( jsfiddles), .
( jsfiddle)
:

, JavaScript, JSON, Sankey. , JsFiddle. , , ..
key code , :
node.selectAll("text.nodeValue")
.attr("x", sankey.nodeWidth() / 2)
.attr("y", function (d) { return (d.dy / 2) })
.text(function (d) { return formatNumber(d.value); })
.attr("text-anchor", "middle");
1
( jsfiddle)
, , , :
.attr("dy", 5)
:

2
( jsfiddle)
( 45 , , ):
.attr("transform", "rotate(-45)")
, :

html/svg firebug , , , : ( , )

3
( jsfiddle)
. svg text writing-mode, :
.style("writing-mode", "tb")
:

, . , , Firefox, .
( jsfiddle)
, , , , , . , :
node.selectAll("text.nodeValue")
.text(function (d) { return formatNumber(d.value); })
.attr("text-anchor", "middle")
.attr("transform", function (d) {
return "rotate(-90) translate(" +
(-d.dy / 2) +
", " +
(sankey.nodeWidth() / 2 + 5) +
")";});
:
