How to use D3 tooltip?

API Discussion
Hi guys. Im tired of trying to understand how to use the tooltip for diablo 3 (<script src="https://us.diablo3.com/static/js/tooltips.js"></script>)

I had the file loaded in my webapp, but I don't know what more to do in order to make it run and show the tooltip.

Can someone give me an example?

What do I need to do with `tooltipParams` and where I place the `d3tooltip` attribute?

Thanks!
Greetings, SuperRambo!

Thank you for the report. This is a known issue with the tooltip script, and the development team has been notified. Currently, there is no estimate on when this will be resolved, but I'll update you when it is. Thanks!
Hello Ladd, thanks for the quick reply, but I don't get you.

If I understood well, there is an error with the tooltip script, so it's not working at the moment?

I didn't know about it. I was just asking for an example, because I dont know how to use it.
Thanks.
As long as there is a valid href link on your page, and the script is added, the tooltips should work.

For example:


<head>
<script src="https://us.diablo3.com/static/js/tooltips.js"></script>
</head>
.
.
.
<a href="https://us.diablo3.com/en/item/sky-splitter-Unique_Axe_1H_005_p2">TEST ITEM</a>


If you are asking about what to do with tooltipParams from the API, that provides the path for the link. The current API paths for skills are not all accurate, which is what has been sent to the development team. I hope this helps clear up any confusion. Please let us know if you still have any questions.
Hello, that's what I was looking for. I will try it and say you something.
Thanks! <3

Join the Conversation

Return to Forum