@@ -54,7 +54,7 @@ function init (client, d3) {
5454 }
5555
5656 function hideTooltip ( ) {
57- client . tooltip . style ( 'opacity ' , 0 ) ;
57+ client . tooltip . style ( 'display ' , 'none' ) ;
5858 }
5959
6060 // get the desired opacity for context chart based on the brush extent
@@ -147,7 +147,7 @@ function init (client, d3) {
147147
148148 var rawbgInfo = getRawbgInfo ( ) ;
149149
150- client . tooltip . style ( 'opacity ' , .9 ) ;
150+ client . tooltip . style ( 'display ' , 'block' ) ;
151151 client . tooltip . html ( '<strong>' + translate ( 'BG' ) + ':</strong> ' + client . sbx . scaleEntry ( d ) +
152152 ( d . type === 'mbg' ? '<br/><strong>' + translate ( 'Device' ) + ': </strong>' + d . device : '' ) +
153153 ( d . type === 'forecast' && d . forecastType ? '<br/><strong>' + translate ( 'Forecast Type' ) + ': </strong>' + d . forecastType : '' ) +
@@ -338,7 +338,7 @@ function init (client, d3) {
338338 prepareTreatCircles ( treatCircles . enter ( ) . append ( 'circle' ) )
339339 . attr ( 'class' , 'treatment-dot' )
340340 . on ( 'mouseover' , function ( d ) {
341- client . tooltip . style ( 'opacity ' , .9 ) ;
341+ client . tooltip . style ( 'display ' , 'block' ) ;
342342 client . tooltip . html ( d . isAnnouncement ? announcementTooltip ( d ) : treatmentTooltip ( d ) )
343343 . style ( 'left' , tooltipLeft ( ) )
344344 . style ( 'top' , ( d3 . event . pageY + 15 ) + 'px' ) ;
@@ -435,7 +435,7 @@ function init (client, d3) {
435435 . attr ( 'class' , 'g-duration' )
436436 . attr ( 'transform' , rectTranslate )
437437 . on ( 'mouseover' , function ( d ) {
438- client . tooltip . style ( 'opacity ' , .9 ) ;
438+ client . tooltip . style ( 'display ' , 'block' ) ;
439439 client . tooltip . html ( d . isAnnouncement ? announcementTooltip ( d ) : treatmentTooltip ( d ) )
440440 . style ( 'left' , tooltipLeft ( ) )
441441 . style ( 'top' , ( d3 . event . pageY + 15 ) + 'px' ) ;
@@ -640,7 +640,7 @@ function init (client, d3) {
640640 glucose = Math . round ( glucose * decimals ) / decimals ;
641641 }
642642
643- client . tooltip . style ( 'opacity ' , .9 ) ;
643+ client . tooltip . style ( 'display ' , 'block' ) ;
644644 client . tooltip . html ( '<strong>' + translate ( 'Time' ) + ':</strong> ' + client . formatTime ( getOrAddDate ( treatment ) ) + '<br/>' + '<strong>' + translate ( 'Treatment type' ) + ':</strong> ' + translate ( client . careportal . resolveEventName ( treatment . eventType ) ) + '<br/>' +
645645 ( treatment . carbs ? '<strong>' + translate ( 'Carbs' ) + ':</strong> ' + treatment . carbs + '<br/>' : '' ) +
646646 ( treatment . protein ? '<strong>' + translate ( 'Protein' ) + ':</strong> ' + treatment . protein + '<br/>' : '' ) +
@@ -667,7 +667,7 @@ function init (client, d3) {
667667 //console.log(treatment);
668668 var windowWidth = $ ( client . tooltip . node ( ) ) . parent ( ) . parent ( ) . width ( ) ;
669669 var left = d3 . event . x + TOOLTIP_WIDTH < windowWidth ? d3 . event . x : windowWidth - TOOLTIP_WIDTH - 10 ;
670- client . tooltip . style ( 'opacity ' , .9 )
670+ client . tooltip . style ( 'display ' , 'block' )
671671 . style ( 'left' , left + 'px' )
672672 . style ( 'top' , ( d3 . event . pageY ? d3 . event . pageY + 15 : 40 ) + 'px' ) ;
673673
@@ -760,7 +760,7 @@ function init (client, d3) {
760760 } )
761761 . on ( 'drag' , function ( ) {
762762 //console.log(d3.event);
763- client . tooltip . style ( 'opacity ' , .9 ) ;
763+ client . tooltip . style ( 'display ' , 'block' ) ;
764764 var x = Math . min ( Math . max ( 0 , d3 . event . x ) , chart ( ) . charts . attr ( 'width' ) ) ;
765765 var y = Math . min ( Math . max ( 0 , d3 . event . y ) , chart ( ) . focusHeight ) ;
766766
@@ -1266,7 +1266,7 @@ function init (client, d3) {
12661266 } )
12671267 . text ( generateText )
12681268 . on ( 'mouseover' , function ( d ) {
1269- client . tooltip . style ( 'opacity ' , .9 ) ;
1269+ client . tooltip . style ( 'display ' , 'block' ) ;
12701270 client . tooltip . html ( profileTooltip ( d ) )
12711271 . style ( 'left' , ( d3 . event . pageX ) + 'px' )
12721272 . style ( 'top' , ( d3 . event . pageY + 15 ) + 'px' ) ;
0 commit comments