Defaulting the scroll bar to the right of a chart

There are times when you have a lot of dimensions and a scroll bar is required. However, suppose you want to sort on date, going from the oldest to newest, and you want to make the default view the current one, which shows the newest dates that are on the right-hand side of the chart. There is no obvious property that allows this. However, there is a property built into the chart object; it's just that there isn't a GUI option to set it.

The way to set this property is to write a subroutine in the Module script and then to run it just once.

In the example elaborated earlier in this chapter, where we sorted a chart's dimensions, we can show this with the scroll bar to the right.

First of all, we need ...

Get QlikView Unlocked now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.