Selecting Data for the Z-Axis on a Chart (Optional)

If you want to plot data in a series fashion, check the 2 sets of data (z-axis) checkbox in the Data tab. This makes the Z-Axis subtab available, where you can select a column for your Z-Axis.

Tip: Best practices when using series (Z-axis):

If you are setting data on the Z-axis, note that you cannot use Top N Charts. Also consider the effect of the Row Limit setting in the query. For example, if your row limit for a normal chart (X- and Y-axes only) is 10 rows, you will get 10 data points.

For a stacked chart with Z-axis, you will still get 10 data points but two will be in the same column. You can try a limit of 25 to 30 rows, which makes the chart readable, but could cause a readability issue if there is not a lot of overlap (stacking) in the data series.

Effect of Sorting on Bar Charts with Series Data

You might encounter unexpected results in your bar charts (stacked or not stacked) if you are plotting data on the X-, Y-, and Z-axis. Consider the following stacked bar charts, where the expected result is shown in Example A but the actual result shows as Example B. In Example B, the stacks seem to spread out along the X-axis as separate data points (the samples are only to represent the behavior described in this topic).

The following configurations can result in a stacked chart report similar to Example B:

To configure the report so that it sorts on the X axis:

  1. Go to the chart’s setting for the X-axis parameters and click the entry under Selected Columns.

  2. Click the Sort checkbox and select the sort order as desired.

    You do not need to remove sorting on the Y-axis as long as sorting is enabled for the X-axis. The X-axis takes precedence, and the resulting report will now be like Example A.