Dundas Chart for SharePoint Send comments on this topic.
Axes Labels And Grid Lines
See Also

Glossary Item Box

Overview

Axes labels and grid lines make the data displayed in charts easier to read. They provide a visual guide to allow users to follow each data point to its corresponding value along the chart's axis scale. Both the X and Y primary, and secondary axes allow the use of labels, and grid lines. The properties for these elements are located in Step 3: Chart Element Properties of the Customization Wizard, however, before you can set any of these properties, you must first enable labels and grid lines by putting a check in the Show Axis Labels and Show Major Grid Lines check boxes respectively, as shown in Figure 1 below.

 

Figure 1: The Axes and Grid Lines tab in step 3 of the customization wizard.

 

Axis Label Properties

All axis labels, which are represented by the LabelStyle property of the Axis class, and contain the following:

The properties of axis elements, like labels etc., are given a higher priority than the properties of the Axis. For example, if the axis Interval is set to 5, and the LabelStyle Interval is set to 3, then a value of 3 will be used for the label's interval instead of the value 5 that was set for the axis interval.

 

The following, are several important points concerning axis label intervals:

 

For more information on grid lines and tick marks, see the topic on Grid Lines and Tick Marks

Grid Line Properties

Major and minor grid lines are represented by the MajorGrid and MinorGrid properties of the Axis class. The visual properties of grid lines are controlled by the Grid class, which contains the following public properties:

Follow these steps to set the Interval and IntervalType properties of grid lines in the charting web part control:

  1. With your SharePoint project open, choose Customize Your Chart from the web part dropdown menu.
  2. In the Customization Wizard go to step 3, and open the Axes and Grid Lines tab.
  3. In the Axes and Grid Lines tab, put a check in the Show Major Grid Lines check box to display the grid line's properties.
  4. Set the grid line properties as desired, and click Finish to complete your task.

 

See Also