Skip to content

Commit f39dfe6

Browse files
committed
Remove tooltip transitions
1 parent 3913815 commit f39dfe6

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

src/js/linechart.js

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -310,8 +310,6 @@ const render = (data) => {
310310

311311
// Reset stroke of dot to white
312312
current.style('stroke', 'white');
313-
314-
div.transition().duration(125).style('opacity', 0);
315313
}
316314

317315
// Adds interactivity when mouse is over economy dot
@@ -334,8 +332,6 @@ const render = (data) => {
334332
current.style('fill', 'rgba(255, 0, 0, 0.3');
335333
d3.selectAll('.line-path2').style('stroke', 'rgba(255, 0, 0, 0.3');
336334
current.style('stroke', 'white');
337-
338-
div.transition().duration(500).style('opacity', 0);
339335
}
340336

341337
// Adds interactivity when mouse is over freedom dot
@@ -362,8 +358,6 @@ const render = (data) => {
362358
current.style('fill', 'rgba(255, 165, 0, 0.3)');
363359
d3.selectAll('.line-path3').style('stroke', 'rgba(255, 165, 0, 0.3)');
364360
current.style('stroke', 'white');
365-
366-
div.transition().duration(500).style('opacity', 0);
367361
}
368362

369363
// Adds interactivity when mouse is over health dot
@@ -386,8 +380,6 @@ const render = (data) => {
386380
current.style('fill', 'rgba(238, 130, 238, 0.3)');
387381
d3.selectAll('.line-path4').style('stroke', 'rgba(238, 130, 238, 0.3)');
388382
current.style('stroke', 'white');
389-
390-
div.transition().duration(500).style('opacity', 0);
391383
}
392384

393385
// Adds interactivity when mouse is over generosity dot
@@ -410,8 +402,6 @@ const render = (data) => {
410402
current.style('fill', 'rgba(0, 128, 128, 0.3)');
411403
d3.selectAll('.line-path5').style('stroke', 'rgba(0, 128, 128, 0.3)');
412404
current.style('stroke', 'white');
413-
414-
div.transition().duration(500).style('opacity', 0);
415405
}
416406

417407
// Adds interactivity when mouse is over trust dot
@@ -434,8 +424,6 @@ const render = (data) => {
434424
current.style('fill', 'rgba(64, 224, 208, 0.3)');
435425
d3.selectAll('.line-path6').style('stroke', 'rgba(64, 224, 208, 0.3)');
436426
current.style('stroke', 'white');
437-
438-
div.transition().duration(500).style('opacity', 0);
439427
}
440428

441429
const legendOffset = 200;

0 commit comments

Comments
 (0)