Offer a minimum width for the navigator scroller
I routinely work with charts that have hundreds or thousands of data points. In these cases, even a reasonably-sized window is relatively small compared to the overall window of data. When this happens, the scroller in the navigator becomes uselessly thin, often 1-2 pixels or even 0 pixels! (Yes, I've actually seen this.) Desktop operating systems solved this problem many years ago by enforcing a minimum width for the scroller. Is there a way for Highstock to do the same?
![](https://secure.gravatar.com/avatar/19b7a0e2f28dc9043a57886453113a33?size=40&default=https%3A%2F%2Fassets.uvcdn.com%2Fpkg%2Fadmin%2Ficons%2Fuser_70-6bcf9e08938533adb9bac95c3e487cb2a6d4a32f890ca6fdc82e3072e0ea0368.png)
This is implemented and will be released with the first maintenance. A new option, scrollbar.minWidth is added with a default value of 8.
See http://jsfiddle.net/highcharts/YdTpG/ for test case.
-
Kyle Getz commented
Awesome! This will improve usability nicely. :-)
-
Kyle Getz commented
I've noticed a related problem: if the horizontal scroller becomes 0 pixels wide, clicking on the scrollbar itself (to move one "page" to the left or right) no longer works. You have to zoom out until the scroller is at least 1 pixel, then clicking on the scrollbar works again.
-
Kyle Getz commented
For reference, Google Finance handles this situation nicely; here's an example:
http://www.google.com/finance?q=NASDAQ%3AMSFT
Even though the window is very small relative to the window of data in the navigator (3 days vs. over 2 years), the horizontal scroller is still very usable.
-
Not exactly - there's the xAxis.maxZoom option, but this works on the data level, not only the graphic representation of the scrollbar. It's a good idea I think. When the mininum scrollbar width is reached we have to center it around the gap in the navigator.