It is currently Thu Oct 23, 2014 3:38 am Advanced search

exception in MouseTracker.onmousemove()

Technical support for the Highcharts Stock package

exception in MouseTracker.onmousemove()

Postby ddean » Tue Aug 30, 2011 12:19 am

This seems to happen in a line chart when there is a high density of data points (many x values per cm), when you mouse over the data points. The exception occurs at line 6694 in highstock.src.js (v1.0 Beta (2011-07-05)

Uncaught TypeError: Property 'onMouseOver' of object #<Object> is not a function

Inspecting the point object in the debugger shows that all it's attributes have null values (except for point._dist).

Code: Select all
         // separate tooltip and general mouse events
         if (hoverSeries && hoverSeries.tracker) { // only use for line-type series with common tracker

            // get the point
            point = hoverSeries.tooltipPoints[index];

            // a new point is hovered, refresh the tooltip
            if (point && point !== hoverPoint) {

               // trigger the events
               point.onMouseOver();

            }
         }
      }
ddean
 
Posts: 6
Joined: Sat Jul 30, 2011 9:28 pm

Re: exception in MouseTracker.onmousemove()

Postby eolsson » Fri Sep 02, 2011 2:43 pm

Could you test with the latest development version at https://raw.github.com/highslide-software/highcharts.com/stock2/js/highstock.src.js to see if the problem is still there?
Erik Olsson
Highsoft Solutions AS
eolsson
 
Posts: 396
Joined: Tue May 03, 2011 1:07 pm

Re: exception in MouseTracker.onmousemove()

Postby ddean » Fri Sep 09, 2011 12:24 am

Hi Erik,

Unfortunately that didn't fix it. However the good news is that I found a way to reproduce it in one of your JSFiddle examples.

http://jsfiddle.net/gh/get/jquery/1.6/highslide-software/highcharts.com/tree/stock/samples/stock/tooltip/crosshairs-xy/

In the chart set the range selector to "All" and then adjust the extremes, using the navigator handles, to the maximum (full date range).

Now move the mouse across the graph and you should see that the crosshairs are not displayed. Exceptions are occurring on each mousemove event as
I described in my first post.

Thanks,

-d
ddean
 
Posts: 6
Joined: Sat Jul 30, 2011 9:28 pm

Re: exception in MouseTracker.onmousemove()

Postby eolsson » Mon Sep 12, 2011 11:02 am

Hi, yes I see the problem. Added report and repro-steps here https://github.com/highslide-software/highcharts.com/issues/441.
Thank you for the report!
Erik Olsson
Highsoft Solutions AS
eolsson
 
Posts: 396
Joined: Tue May 03, 2011 1:07 pm


Return to Highstock Usage

Who is online

Users browsing this forum: No registered users and 2 guests