It is currently Wed Apr 23, 2014 1:49 pm Advanced search

Disable Legend Click with legendItemClick

Technical support, bug reports and more.

Disable Legend Click with legendItemClick

Postby inevative » Thu Feb 23, 2012 4:03 pm

Can someone else please confirm that returning false in this function does not stop the toggling of the series visability. I have tried it using the example at http://jsfiddle.net/t2MxW/14/ and it seems to work when using jQuery but if i switch to MooTools, the confirm prompt comes up but the series still toggles.
inevative
 
Posts: 2
Joined: Thu Feb 23, 2012 4:00 pm

Re: Disable Legend Click with legendItemClick

Postby inevative » Fri Feb 24, 2012 4:55 am

anyone?
inevative
 
Posts: 2
Joined: Thu Feb 23, 2012 4:00 pm

Re: Disable Legend Click with legendItemClick

Postby Fusher » Mon Feb 27, 2012 4:18 pm

Well, you can achieve this by calling event.preventDefault() - example: http://jsfiddle.net/Fusher/Kr4wM/1/
Paweł Fus
Highcharts support team
Fusher
 
Posts: 5267
Joined: Mon Jan 30, 2012 12:16 pm


Return to Highcharts Usage

Who is online

Users browsing this forum: No registered users and 7 guests