Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8572615
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T19:03:40+00:00 2026-06-11T19:03:40+00:00

I have written a graphing widget with Raphael JS. Data is taken from a

  • 0

I have written a graphing widget with Raphael JS. Data is taken from a database and graphed in a canvas. The issue appeared when I tried to create a tooltip for the data points. The tooltip fades in, but is buggy when fading out. Sometimes it will fade out and sometimes it won’t (it seems to not fade out when the mouse is moving fast). It should be noted that when the mouse hovers over a datapoint the data point grows. Any help in improving my code would be helpful. Thanks. Code below:

circle2[<?php echo $i?>].hover(function () {
circle2[<?php echo $i?>].attr({"stroke": "#000"});
circle2[<?php echo $i?>].attr({"r": "8"});
rect.toFront();
text.toFront();
rect.attr({"x":30+50*<?php echo $i ?>,"y":220-250*<?php echo $time_value[$i]/100000;?>});
text.attr({"text":"<?php echo $date[$i]?>\nValue: $<?php echo $time_value[$i]?>\nInvested: $<?php echo $time_value[$i]?>","y":250-250*<?php echo $time_value[$i]/100000;?>,"x":33+50*<?php echo $i ?>});
rect.animate({"opacity":0.8},500);
text.animate({"opacity":1.0},500);
},
    function () {
         rect.attr({"opacity":0});
         text.attr({"opacity":0});
         circle2[<?php echo $i?>].attr({"stroke": "none"});
         circle2[<?php echo $i?>].attr({"r": "5"});
    }
);
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T19:03:41+00:00Added an answer on June 11, 2026 at 7:03 pm

    Here’s the problem (95% certainty): if there’s a rapid hover occurring, and the duration of the hover is less than the duration of your hover-start animation (500 ms in this case), your hover-out function will set the element opacity to 0 BEFORE the animation concludes and sets the opacity back to 0.8 and 1.0 for your background and text, respectively.

    The solution is to stop the ongoing animations at the conclusion of the hover cycle. You should be able to update your hover-out handler as follows:

    ... 
    function () {
        rect.stop().attr({"opacity":0});
        text.stop().attr({"opacity":0});
        circle2[<?php echo $i?>].attr({"stroke": "none"});
        circle2[<?php echo $i?>].attr({"r": "5"});
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

have written a stochastic simulation in Java, which loads data from a few CSV
I have written a xml/php document that is pulling from a Magento Commerce database,
I have written code to store some headline's from news websites in a database.
I have written this code inside a servlet to delete certain records from three
I have written a function that sorts a big scale of data. To test
I have written a function that extract the domain from hostname. e.g. www.domain.com ->
I have written a Java program which I package and run from a JAR
I have written a database query to extract information in ColdFusion and I want
I have written a simple WCF web service in C# which returns records from
I have written an Android app (target 3.2) using Eclipse 3.7, I tried to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.