Skip to content

Commit

Permalink
refactor: Remove automatic legend and adjust point opacity
Browse files Browse the repository at this point in the history
  • Loading branch information
sanity committed Nov 27, 2024
1 parent fe7738f commit d7ff0af
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions hugo-site/static/js/small-world-comparison.js
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ waitForD3().then(() => {
{ x: rnAvgPath, y: rnSuccess }
];

// Add points
// Add points without legend
svg.selectAll('.point')
.data(data)
.enter()
Expand All @@ -311,7 +311,8 @@ waitForD3().then(() => {
.attr('cx', d => x(d.x))
.attr('cy', d => y(d.y))
.attr('r', 6)
.attr('fill', (d, i) => i === 0 ? '#4292c6' : '#08519c');
.attr('fill', (d, i) => i === 0 ? '#4292c6' : '#08519c')
.style('opacity', 0.8);


}
Expand Down

0 comments on commit d7ff0af

Please sign in to comment.