Scaling the y-axis

After binding a chart to a dataset in the spreadsheet, SAP BusinessObjects Dashboards makes up a scale on the y axis by default, based on the lowest and highest values in the visualized dataset. The problem with this auto-scaling is that it creates a y-axis that doesn't start with 0, which may cause a bad interpretation of the data.

In the following screenshot, the same results are presented in two bar charts. The chart on the left-hand side gives the indication that Product B has performed a lot better than Product A; the bar is more than two times larger! This is, of course, wrong, as the y-axis starts at $470,000. The chart on the right-hand side shows a version that is much more useful for analysis.

Scaling the y-axis

Getting ready

You can reuse any of the dashboards you have already made with chart components. In this recipe, we will use the dashboard created in the Adding a line chart to your dashboard recipe.

How to do it...

  1. Select the chart, go to the Behavior tab, and select the Scale sub-tab. If your chart has a secondary axis, there will be two sub-tabs: Primary Scale and Secondary Scale.
  2. Select Manual (Y) Axis.
  3. Enter 0 under Minimum Limit and 1000 under Maximum Limit.
  4. Select Fixed Label Size.
  5. Set the Size of Divisions to 200 and Minor Divisions to 1:
    How to do it...

How it works...

The y-axis of the chart will now have a fixed minimum and maximum limit. Remember that this also means that values higher than 1000 won't be displayed correctly with these settings. They will be placed on the maximum value (1000) of this chart.

The Fixed Label Size option keeps the labels on the y-axis readable. 1,000 is 1K, 1,000,000 is 1M, a billion is 1B, and a trillion is 1T.

There's more...

We conclude this recipe with two additional options regarding scaling the y-axis: variable maximum limits and Allow Zoom Out Only.

Variable maximum limits

To make sure that values in the dataset never pass the maximum limit, we can use a variable maximum limit by following these steps:

  1. Go to the spreadsheet and enter this formula in cell D1: =MAX(B5:E7). This will result in the maximum value of the range B5 through E7.
  2. Bind the Maximum Limit to cell D1. The y-axis will now display the exact maximum value that resulted from the formula.
  3. To make this value a more rounded number we have to adjust the formula. Change the formula to =ROUNDUP((MAX(B5:E7)),-3). The -3 indicates that the value will be rounded up to the nearest thousand. So if the maximum value is 1978, the maximum limit on the y-axis will be 2000. -1 rounds to the nearest tens, -2 to the nearest hundred, and so on.

Allow Zoom Out Only

If you do want to use an automatic axis, SAP BusinessObjects Dashboards offers the Allow Zoom Out Only option. This option is only useful if a dataset that is presented in a chart is variable (for example, by switching with a selector; see Chapter 3, From a Static to an Interactive Dashboard). By selecting this option, the y-axis will only scale to larger values when a dataset with higher values is presented. If the values are lower, the scale will not change. With the slider, you can set the sensitivity of the growth factor.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset