Skip to content

Commit

Permalink
refactor: Remove redundant point labels from scatter plot
Browse files Browse the repository at this point in the history
  • Loading branch information
sanity committed Nov 27, 2024
1 parent 8a9a75b commit 781417b
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions hugo-site/static/js/small-world-comparison.js
Original file line number Diff line number Diff line change
Expand Up @@ -313,17 +313,6 @@ waitForD3().then(() => {
.attr('r', 6)
.attr('fill', (d, i) => i === 0 ? '#4292c6' : '#08519c');

// Add labels
svg.selectAll('.point-label')
.data(data)
.enter()
.append('text')
.attr('class', 'point-label')
.attr('x', d => x(d.x))
.attr('y', d => y(d.y) - 10)
.attr('text-anchor', 'middle')
.style('font-size', '10px')
.text(d => d.name);

}

Expand Down

0 comments on commit 781417b

Please sign in to comment.