{"action":"created","issue":{"url":"https://api.github.com/repos/apache/incubator-superset/issues/5396","repository_url":"https://api.github.com/repos/apache/incubator-superset","labels_url":"https://api.github.com/repos/apache/incubator-superset/issues/5396/labels{/name}","comments_url":"https://api.github.com/repos/apache/incubator-superset/issues/5396/comments","events_url":"https://api.github.com/repos/apache/incubator-superset/issues/5396/events","html_url":"https://github.com/apache/incubator-superset/issues/5396","id":341346995,"node_id":"MDU6SXNzdWUzNDEzNDY5OTU=","number":5396,"title":"DeckGL Polygon Tooltip?","user":{"login":"ahsanshah","id":14385814,"node_id":"MDQ6VXNlcjE0Mzg1ODE0","avatar_url":"https://avatars0.githubusercontent.com/u/14385814?v=4","gravatar_id":"","url":"https://api.github.com/users/ahsanshah","html_url":"https://github.com/ahsanshah","followers_url":"https://api.github.com/users/ahsanshah/followers","following_url":"https://api.github.com/users/ahsanshah/following{/other_user}","gists_url":"https://api.github.com/users/ahsanshah/gists{/gist_id}","starred_url":"https://api.github.com/users/ahsanshah/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ahsanshah/subscriptions","organizations_url":"https://api.github.com/users/ahsanshah/orgs","repos_url":"https://api.github.com/users/ahsanshah/repos","events_url":"https://api.github.com/users/ahsanshah/events{/privacy}","received_events_url":"https://api.github.com/users/ahsanshah/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":10,"created_at":"2018-07-15T19:49:41Z","updated_at":"2018-10-01T01:54:55Z","closed_at":"2018-07-16T15:38:41Z","author_association":"NONE","body":"Make sure these boxes are checked before submitting your issue - thank you!\r\n\r\n- [ X] I have checked the superset logs for python stacktraces and included it here as text if any\r\n- [ X] I have reproduced the issue with at least the latest released version of superset\r\n- [X ] I have checked the issue tracker for the same issue and I haven't found one similar\r\n\r\n\r\n### Superset version\r\n25.5\r\n\r\n### Expected results\r\nExpect the Advanced Deck GL option for \"Javascript tooltip generator\" to allow for hover/tooltip JS\r\n\r\n### Actual results\r\nUnable to use the tooltip generator.  Get a \"This functionality has been disabled for security reasons\"\r\n\r\n### Steps to reproduce\r\n\r\nIs this functionality available or still in the works?  Should we be able to use for example a Deck GL Polygon and allow hover over tooltips?  The documentation is unclear on this feature but I am able to see the Controls section for this under Advanced. \r\n\r\n"},"comment":{"url":"https://api.github.com/repos/apache/incubator-superset/issues/comments/425770898","html_url":"https://github.com/apache/incubator-superset/issues/5396#issuecomment-425770898","issue_url":"https://api.github.com/repos/apache/incubator-superset/issues/5396","id":425770898,"node_id":"MDEyOklzc3VlQ29tbWVudDQyNTc3MDg5OA==","user":{"login":"syazwan0913","id":28984703,"node_id":"MDQ6VXNlcjI4OTg0NzAz","avatar_url":"https://avatars0.githubusercontent.com/u/28984703?v=4","gravatar_id":"","url":"https://api.github.com/users/syazwan0913","html_url":"https://github.com/syazwan0913","followers_url":"https://api.github.com/users/syazwan0913/followers","following_url":"https://api.github.com/users/syazwan0913/following{/other_user}","gists_url":"https://api.github.com/users/syazwan0913/gists{/gist_id}","starred_url":"https://api.github.com/users/syazwan0913/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/syazwan0913/subscriptions","organizations_url":"https://api.github.com/users/syazwan0913/orgs","repos_url":"https://api.github.com/users/syazwan0913/repos","events_url":"https://api.github.com/users/syazwan0913/events{/privacy}","received_events_url":"https://api.github.com/users/syazwan0913/received_events","type":"User","site_admin":false},"created_at":"2018-10-01T01:54:55Z","updated_at":"2018-10-01T01:54:55Z","author_association":"NONE","body":"> After you enable the extraProps, you can just write a JS function, here is a rough skeleton.\r\n> \r\n> function updateTooltip(object) {\r\n> title = object.object.extraProps.amenities.replace(/,/g , \", \");\r\n> return (\r\n> '\r\n> \r\n> Title:\r\n> '+ object.object.extraProps.title'\r\n> );\r\n> }\r\n> You should be able to see the hover and add whatever elements as needed in the function.\r\n> \r\n> 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?\r\n\r\n@ahsanshah Hi there. I'm unfamiliar with javascript and I tried the function but when I run the query, it show \"ReferenceError : $ is not defined\". What is the correct way to put the script?"}}
{"actor":{"display_login":"syazwan0913"}}