ahsanshah commented on issue #5396: DeckGL Polygon Tooltip?
URL: 
https://github.com/apache/incubator-superset/issues/5396#issuecomment-407234075
 
 
   We did not seem to have that issue.  We are using a DeckGL Scatter and it 
works fine and only shows the tooltip upon hover of a point in your dataset 
(there should not be any hover unless it exists).  What version are you on? 
Maybe worth opening a separate issue as this one is closed?   
   
   If you mean you are showing NULL titles when they are indeed NULL and want 
to "hide" just use some logic llike this: https://codepen.io/vis-gl/pen/pLLQpN
   
     if (object) {
       tooltip.style.top = `${y}px`;
       tooltip.style.left = `${x}px`;
       tooltip.innerHTML = `
   <div><b>Average Property Value &nbsp;</b></div>
   <div><div>${object.properties.valuePerSqm} / m<sup>2</sup></div></div>
   <div><b>Growth</b></div>
   <div>${Math.round(object.properties.growth * 100)}%</div>
   `;
     } else { 
       tooltip.innerHTML = '';
     }
   
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to