Skip to content

Commit

Permalink
fix tooltips
Browse files Browse the repository at this point in the history
  • Loading branch information
KatrinaTurner committed May 9, 2023
1 parent 5a54eb4 commit 3580444
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion src/Components/RenderBumpChart.js
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,17 @@ export default class SvgHandler {

///////////////////////
// point Tooltips
var tooltip = d3.select('body').append('div').attr('class', 'small-tooltip');
var tooltip = d3
.select('body')
.append('div')
.attr('class', 'tooltip')
.style('background-color', theme.colors.background.primary)
.style('font-family', theme.typography.fontFamily.sansSerif)
.style('color', theme.colors.text.primary)
.style('box-shadow', '3px 3px 6px lightgray')
.style('border', 'none')
.style('padding', '10px')
.style('opacity', '0');

svg
.selectAll('circle')
Expand Down

0 comments on commit 3580444

Please sign in to comment.