kylegetz
Posts: 141
Joined: Tue Oct 11, 2011 10:24 pm

Using the navigator shouldn't cause changes in window size

I've noticed that if you set a window size (5 minutes, 1 hour, 3 days, or whatever) and then interact with the navigator, the window can change size. This seems like a bug to me; if the user has set a window size, it should remain that size until changed by the user.

Best seen with a demo: http://jsfiddle.net/TheEvilHammer/CfEUp/

Repro steps:
  1. After the chart loads, click "3d" in the range selector.
  2. Verify the text below the chart has the correct window size (72 hours).
  3. Click anywhere in the navigator and notice that the window size changes.
In this demo, the window size will go from 72 hours to something like 91.77 hours, which is a change of 27%! The window size shouldn't be changing at all.
kylegetz
Posts: 141
Joined: Tue Oct 11, 2011 10:24 pm

Re: Using the navigator shouldn't cause changes in window si

I'll also note that panning (grabbing the plot area with the mouse and moving left or right) does not result in a new window size. Only interacting with the navigator exhibits this problem.
kylegetz
Posts: 141
Joined: Tue Oct 11, 2011 10:24 pm

Re: Using the navigator shouldn't cause changes in window si

Bump. Any word on this?
hfrntt
Posts: 6393
Joined: Mon Aug 30, 2010 8:41 am
Contact: Website

Re: Using the navigator shouldn't cause changes in window si

Hi, sorry for the late reply. Someone will come back to you soon.
Slawek Kolodziej
Highcharts support team
torstein.honsi
Site Admin
Posts: 9215
Joined: Thu Nov 09, 2006 11:22 am
Location: Vik i Sogn, Norway

Re: Using the navigator shouldn't cause changes in window si

This is how the navigator currently works - it looks at the pixel width and translates back to x axis values. Expecially in ordinal axes the zoomed range can vary greatly in terms of axis values, while the width of the navigator range is constant.
Torstein Hønsi
CTO, Founder
Highsoft
kylegetz
Posts: 141
Joined: Tue Oct 11, 2011 10:24 pm

Re: Using the navigator shouldn't cause changes in window si

Are there any plans to change this behavior for non-ordinal axes so that the window size remains constant?
hfrntt
Posts: 6393
Joined: Mon Aug 30, 2010 8:41 am
Contact: Website

Re: Using the navigator shouldn't cause changes in window si

I suppose that there aren't before the Highcharts 3.0 (http://www.highcharts.com/support/roadmap)
Slawek Kolodziej
Highcharts support team
kylegetz
Posts: 141
Joined: Tue Oct 11, 2011 10:24 pm

Re: Using the navigator shouldn't cause changes in window si

I realize this thread has been dormant for a while, but I'm circling back around to it because I still run into this problem often. I 've filed two UserVoice enhancements (listed below) for this but I still believe there's a legitimate bug here.

Repro steps:
  1. Open up this Highstock demo: http://www.highcharts.com/stock/demo/lazy-loading
  2. Click the "1m" button to change the window size to one month.
  3. Click in the navigator's data display area to move the window to somewhere in the middle.
  4. Click the "1h" button to change the window size to one hour.
  5. Try using the scrollbar (either the arrow buttons or the bar itself).
Notice that the scrollbar has become useless and clicking on it doesn't do anything. The user is now unable to move left or right without using the resize handles, which is going to cause a massive change in window size. When I try to move the resize handles as little as possible (one pixel), the window size jumps to about two weeks, which is a far cry from the one hour size I wanted.

Related UserVoice enhancements:
http://highcharts.uservoice.com/forums/ ... ges-in-win
http://highcharts.uservoice.com/forums/ ... r-scroller
Fusher
Posts: 7912
Joined: Mon Jan 30, 2012 10:16 am

Re: Using the navigator shouldn't cause changes in window si

I think that second issue is a bug too. Especially when it throw errors in console, so I have reported it: https://github.com/highslide-software/h ... ssues/1246 and first is related to the second - size of the scrollbar handler.
Paweł Fus
Highcharts Developer

Return to “Highcharts Stock”