Skip to content

Commit

Permalink
Fixed bug with DataViz that didnt reset circle opacity
Browse files Browse the repository at this point in the history
  • Loading branch information
jackparse14 committed Jun 5, 2024
1 parent 53abec5 commit 738bb7b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions public/js/dataViz.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,8 @@ export function startDataViz() {
.duration(3000)
.delay((d, i) => i * 750)
// Transition to final positions based on data
.attr("cx", (_, i) => x(i));
.attr("cx", (_, i) => x(i))
.attr("opacity", 0.5);
}
export function restartDataViz() {
hideLines();
Expand All @@ -89,7 +90,8 @@ export function restartDataViz() {
.duration(3000)
.attr("cy", startHeight - initialRadius)
.attr("r", initialRadius)
.attr("cx", (_, i) => x(i));
.attr("cx", (_, i) => x(i))
.attr("opacity", 0.5);
}

// STEP TWO FUNCTIONS
Expand Down

0 comments on commit 738bb7b

Please sign in to comment.