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/8cce7051d3420af8d112de1ac0968b31 to your computer and use it in GitHub Desktop.
Save JakenHerman/8cce7051d3420af8d112de1ac0968b31 to your computer and use it in GitHub Desktop.
circles = svg.selectAll('.ranks')
.data(percentileData)
.enter()
.append('circle')
.attr('class', 'ranks')
.attr('cx', d => d.cx + 10 )
.attr('cy', d => d.cy )
.attr('r', d => 10)
.attr('fill', d => d3.interpolateRdBu(1-(Math.floor((d.cx/150)*100) / 100)))
.attr('stroke', 'black');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment