Skip to content

Commit

Permalink
split sunburst breadcrumb names on '_' to apply ' '-dependent wrappin…
Browse files Browse the repository at this point in the history
…g more freqently (#376)
  • Loading branch information
williaster authored and mistercrunch committed Apr 19, 2016
1 parent afcdcf0 commit d96b634
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion caravel/assets/visualizations/sunburst.js
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ function sunburstVis(slice) {
.attr("y", breadcrumbDims.height / 4)
.attr("dy", "0.35em")
.attr("class", "step-label")
.text(function (d) { return d.name; })
.text(function (d) { return d.name.replace(/_/g, " "); })
.call(wrapSvgText, breadcrumbDims.width, breadcrumbDims.height / 2);

// Set position for entering and updating nodes.
Expand Down

0 comments on commit d96b634

Please sign in to comment.