Keep crosshair, update legend not in chart and hide tooltip

Technical support for the Highcharts Stock package

Keep crosshair, update legend not in chart and hide tooltip

Postby matthewcrist » Thu Feb 23, 2012 5:07 pm

I'm looking into ways to keep the crosshair functionality, but instead of showing the tooltip I want to update a custom chart legend that I have that exists outside of the stock chart. This is similar to how Google finance works here => http://www.google.com/finance?q=aapl+pcu+g.

There doesn't seem to be an even that I could tie into to do this, or have I just missed it?
matthewcrist
 
Posts: 7
Joined: Wed Oct 13, 2010 2:19 am

Re: Keep crosshair, update legend not in chart and hide tool

Postby hfrntt » Sun Feb 26, 2012 10:18 pm

Sure, it's quite simple. You have to do everything in tooltip formatter (update the value of that legend) and then formatter should return false to hide the tooltip, see: http://jsfiddle.net/RNZXt/
Slawek Kolodziej
Highcharts support team
hfrntt
 
Posts: 6394
Joined: Mon Aug 30, 2010 10:41 am


Return to Highstock Usage

Who is online

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