Giter VIP home page Giter VIP logo

Comments (6)

pmaji avatar pmaji commented on July 24, 2024

Hi @ccampbell, I appreciate the feedback. It is actually a refresh question, and not a question of modifying the tool-tip. Every time the tool-tip disappears that is because we are refreshing the background data (so that gives you an idea of the speed of the refresh-rate). The entire reason we implemented a freeze button was to find a workaround for this, so if you want the tool-tips to not freeze, simple click the freeze button. Hope that helps :)

If for some reason that doesn't make sense, let me know, otherwise I'll close this issue shortly.

from crypto-whale-watching-app.

theimo1221 avatar theimo1221 commented on July 24, 2024

@pmaji "Refreshing of background data" might be misleading.
Yes, the disappearing of tolltip happens due to refresh of data, but just of data wich are on server.
The serverside refreshing of data happens in a different interval and thread.

So as it can be seen in the time in graph title not every "refresh" really grants new data for that particular graph.

But still, as @pmaji said that´s why we have the freeze Button.

@ccampbell Hope I was able to clear this fopr you.

from crypto-whale-watching-app.

ccampbell avatar ccampbell commented on July 24, 2024

That is fine, but I think it is a pretty poor user experience that it doesn’t actually stay up long enough for you to read it. What you could do is render the tooltip in the body of the document instead of inside the content that is refreshed. That way it can be absolutely positioned and if a refresh happens and your mouse is still over the dot you can keep the tooltip up but update the contents to match the new dot.

In fact, you wouldn’t actually have to do anything. You could just render the tooltip in the body and if the content is refreshed, just keep the tooltip there. That way only when you mouse out and back over, you would get updated content. You could even store an identifier of which dot (identifier for seller/buyer + symbol + price + side perhaps?) triggered the tooltip, and after refresh, update or remove it, depending on if that dot still exists.

Obviously that would be more work to implement so I understand if you don’t have the time.

from crypto-whale-watching-app.

theimo1221 avatar theimo1221 commented on July 24, 2024

We are using plotly with dash for rendering so we can't "just render it to body"

If we would prepare all those data on our own I would totally agree with you but this way it's not that easy.

from crypto-whale-watching-app.

ccampbell avatar ccampbell commented on July 24, 2024

Aha. That makes sense. Thanks.

One other idea. You could capture the data about the hover and then trigger it programmatically after the refresh. I found this

https://plot.ly/javascript/hover-events/#triggering-hover-events

Obviously, not super high priority. Thanks for your work on this 😄

from crypto-whale-watching-app.

theimo1221 avatar theimo1221 commented on July 24, 2024

@ccampbell Good idea but there is another misconception. We are using Plotly/ Dash in Python. And having a programmatic callback would result in e.g. you clicking and I get same tooltip.

So we have no single callback except data refresh.
Cause I don´t want to interfere with your Website visit and you not with mine....

As @pmaji mentioned, just freeze/ unfreeze site

from crypto-whale-watching-app.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.