Skip to content

Commit

Permalink
Uncommented code for the simulation
Browse files Browse the repository at this point in the history
  • Loading branch information
yseoo committed May 25, 2024
1 parent 94818d0 commit d4b600d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions script.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,9 @@ function drawBubbleChart(dataArray) {
.text(d.value);
});

// simulation.on('tick', () => {
// node.attr('transform', d => `translate(${d.x}, ${d.y})`);
// });
simulation.on('tick', () => {
node.attr('transform', d => `translate(${d.x}, ${d.y})`);
});
}

// Function to wrap text within bubbles
Expand Down

0 comments on commit d4b600d

Please sign in to comment.