How to: Specify an Axis Interval

The axis interval defines the number of labels and accompanying tick marks on an axis. On the value axis, axis intervals provide a consistent measure of the data points on the chart. However, on the category axis, this functionality can cause categories to appear without axis labels. You can specify the number of intervals you want in the axis Interval property. Reporting Services calculates the number of intervals at run time, based on the data in the result set. For more information about how axis intervals are calculated, see Formatting Axis Labels on a Chart.

This topic is not applicable for date or time values on the category axis. By default, DateTime values appear as days. To specify a different date or time interval, you must format the axis labels and set the axis to display instances of DateTime types instead of String types. In addition, you must set the Interval property. For more information, see How to: Format Axis Labels as Dates or Currencies.

This topic does not apply to pie, doughnut, funnel or pyramid charts.

To show all category labels on the x-axis

  1. Right-click the category axis and click Axis Properties. The Axis Properties dialog box opens.

  2. In Axis Options, set Interval to 1. Every category group label is displayed. If you want to show every other category group label on the x-axis, enter 2.

  3. Click OK.

    Note

    When an axis interval is set, all automatic labeling is disabled. If you specify a value for the axis interval, you might experience unpredictable labeling behavior, depending on how many categories are on the category axis.

To enable a variable interval calculation on an axis

  1. Right-click the chart axis that you want to change, and then click Axis Properties. The Axis Properties dialog box opens.

  2. In Axis Options, set Interval to Auto. Reporting Services will display the optimal number of category labels that can fit along the axis.

  3. Click OK.

See Also

Tasks

How to: Sort Data in a Data Region (Reporting Services)

How to: Specify a Logarithmic Scale (Reporting Services)

How to: Plot Data on a Secondary Axis

Reference

Axis Properties Dialog Box, Axis Options

Axis Properties Dialog Box, Labels

Concepts

Formatting a Chart

Formatting Data Points on a Chart