It is currently Mon Sep 22, 2014 2:11 pm Advanced search

Scatter points not registering click/select events in v2.2

Technical support, bug reports and more.

Scatter points not registering click/select events in v2.2

Postby nsidawy » Thu Feb 23, 2012 6:40 pm

Ever since I upgraded to v2.2 my scatter plot points haven't been registering clicks or select events (mouseOver and mouseOut have been working fine).

The following fiddles are identical except for one uses a line plot and the other uses scatter:
Line - http://jsfiddle.net/cfKzS/4605/
Scatter - http://jsfiddle.net/cfKzS/4603/

Was this intentional?
nsidawy
 
Posts: 8
Joined: Thu Feb 23, 2012 6:34 pm

Re: Scatter points not registering click/select events in v2

Postby nsidawy » Thu Feb 23, 2012 11:47 pm

Upon further inspection it appears that there is no tracker being created for the scatter series. Hopefully that information is useful.
nsidawy
 
Posts: 8
Joined: Thu Feb 23, 2012 6:34 pm

Re: Scatter points not registering click/select events in v2

Postby wastedspace » Fri Feb 24, 2012 2:19 pm

Hi,

I'm just testing the new release of Highcharts & have noticed the very same issue. My scatter charts normally open a highslide popup when clicking on a point. The upgraded one doesn't do this at all. I thought at first it was a compatibility bug between highcharts & highslide... But even if I put a simple alert in, it still doesn't work. I tired moving the point: {} up to the same level as chart, legend, etc but no joy.

Help us pls! :)
wastedspace
 
Posts: 48
Joined: Mon Feb 21, 2011 6:33 pm

Re: Scatter points not registering click/select events in v2

Postby Fusher » Fri Feb 24, 2012 3:01 pm

Paweł Fus
Highcharts support team
Fusher
 
Posts: 7227
Joined: Mon Jan 30, 2012 12:16 pm

Re: Scatter points not registering click/select events in v2

Postby nsidawy » Fri Feb 24, 2012 3:55 pm

Here is a temporary fix for this issue. Just run this code after the chart has been made:
Code: Select all
for (i = 0; i < chart.series.length; i++) {
    if (chart.series[i].type !== "scatter") {
           continue;
    }
    for (j = 0; j < chart.series[i].points.length; j++) {
           chart.series[i].points[j].graphic.attr({isTracker: true});
     }
}
nsidawy
 
Posts: 8
Joined: Thu Feb 23, 2012 6:34 pm

Re: Scatter points not registering click/select events in v2

Postby wastedspace » Mon Feb 27, 2012 2:03 pm

Great, thanks. This works for me as a temporary fix :)
wastedspace
 
Posts: 48
Joined: Mon Feb 21, 2011 6:33 pm

Re: Scatter points not registering click/select events in v2

Postby nsidawy » Mon Feb 27, 2012 6:16 pm

The issue has been closed on GitHub, however it does not look like the update has been released yet.
nsidawy
 
Posts: 8
Joined: Thu Feb 23, 2012 6:34 pm

Re: Scatter points not registering click/select events in v2

Postby nsidawy » Tue Feb 28, 2012 3:36 pm

"We will release a maintenance version within a few weeks." -highslide-software (on GitHub)

Thanks for getting this issue attention everyone.
nsidawy
 
Posts: 8
Joined: Thu Feb 23, 2012 6:34 pm


Return to Highcharts Usage

Who is online

Users browsing this forum: Bing [Bot] and 6 guests