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?
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.