It is currently Fri Jan 19, 2018 7:13 am Advanced search

Listener on range button

Technical support for the Highcharts Stock package

Listener on range button

Postby joulinho » Tue Feb 21, 2012 2:52 pm

Hi everybody,

First of all congratulations for this awesome library. :P

I use the HighStock library especially for its range selector.
In my report, I have range buttons "3d", "1w", "1m", "6m", "1y".

The problem is that I don't want the same series for "3d", "1w" and "1m", "6m", "1y". Why? Because I want to draw daily measures if the range is lower than a week, and I want to draw monthly measures if the range is upper. :twisted:
I'd like to change the serie when the range changes.

How can I put a callback function when the user clicks on a range button ?

Thanks for your answers!

Posts: 1
Joined: Tue Feb 21, 2012 2:40 pm

Re: Listener on range button

Postby hfrntt » Fri Feb 24, 2012 2:39 am

For now, the only possible way is using axis setExtremes event: ... etExtremes it's triggered when you push the button, change date using inputs, move scrollbar or navigator or pan the chart (and maybe somewhen else :) ).
Slawek Kolodziej
Highcharts support team
Posts: 6394
Joined: Mon Aug 30, 2010 10:41 am

Return to Highstock Usage

Who is online

Users browsing this forum: No registered users and 3 guests