> 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 (
> '
>
> Title:
> '+ 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?
@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?
[ Full content available at:
https://github.com/apache/incubator-superset/issues/5396 ]
This message was relayed via gitbox.apache.org for [email protected]