Skip to content

Commit

Permalink
Adjust curved label position
Browse files Browse the repository at this point in the history
  • Loading branch information
jakezatecky committed Jan 31, 2017
1 parent a23f7d5 commit a5081c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/d3-funnel/D3Funnel.js
Original file line number Diff line number Diff line change
Expand Up @@ -1051,7 +1051,7 @@ class D3Funnel {
*/
getTextY(paths) {
if (this.isCurved) {
return ((paths[2][1] + paths[3][1]) / 2) + (this.curveHeight / this.blocks.length);
return ((paths[2][1] + paths[3][1]) / 2) + ((1.5 * this.curveHeight) / this.blocks.length);
}

return (paths[1][1] + paths[2][1]) / 2;
Expand Down

0 comments on commit a5081c0

Please sign in to comment.