Last active
June 25, 2017 16:24
-
-
Save yani-/d8be0164290984ee7e33a32f919dc50e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const lines = document.getElementsByClassName('line'); | |
const mousePerLine = mouseOver | |
.selectAll('.mouse-per-line') | |
.data(metrics) | |
.enter() | |
.append('g') | |
.attr('class', 'mouse-per-line'); | |
mousePerLine | |
.append('circle') | |
.attr('r', 3) | |
.style('stroke', d => color(d.name)) | |
.style('fill', d => color(d.name)) | |
.style('stroke-width', '1px') | |
.style('opacity', '0'); | |
mousePerLine | |
.append('text') | |
.attr('transform', 'translate(10, 3)'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment