Skip to content

Instantly share code, notes, and snippets.

@JakenHerman
Created December 8, 2020 05:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JakenHerman/8241e1076a552fb5d7450debefbcbe7d to your computer and use it in GitHub Desktop.
Save JakenHerman/8241e1076a552fb5d7450debefbcbe7d to your computer and use it in GitHub Desktop.
statLabels = svg.selectAll('.labels')
.data(percentileData)
.enter()
.append('text')
.attr('class', 'labels')
.attr('x', 5)
.attr('y', d => d.cy - 6)
.text(d => d.label)
.attr('font-family', 'sans-serif')
.attr('font-weight', 'bolder')
.attr('font-size', '.6rem')
.attr('fill', 'black');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment