Skip to content

Instantly share code, notes, and snippets.

@yani-
Last active June 25, 2017 16:24
Show Gist options
  • Save yani-/d8be0164290984ee7e33a32f919dc50e to your computer and use it in GitHub Desktop.
Save yani-/d8be0164290984ee7e33a32f919dc50e to your computer and use it in GitHub Desktop.
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