ahsanshah commented on issue #5396: DeckGL Polygon Tooltip?
URL: 
https://github.com/apache/incubator-superset/issues/5396#issuecomment-407231394
 
 
   After you enable the extraProps, you can just write a JS function, here is a 
rough skeleton. 
   
   function updateTooltip(object) {
     title = object.object.extraProps.amenities.replace(/,/g , ", ");
     return (
         '<div>Title: </div><div> '+ object.object.extraProps.title'
         );
   }
   
   You should be able to see the hover and add whatever elements as needed in 
the function.
   
   One item we want to do is dynamically position the tooltip.  I assume there 
is a way but unsure.  For instance, as you go to the edges of the slice and 
your tooltip is verbose, can we dynamically position the tooltip based on the 
location in the slice?  
   
   

----------------------------------------------------------------
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