Referencing parts of a graph

You use the Describe and Modify methods to reference the display properties of the various parts of a graph. For example, one of the properties of a graph’s title is whether the text is italicized or not. That information is stored in the boolean Italic property in the TitleDispAttr property of the graph.

This example changes the label text for the Value axis of graph gr_emp in the DataWindowControl dwEmpinfo:

dwEmpinfo.Modify("gr_emp.Values.Label='New label'")

For a complete list of graph properties, see the DataWindow Object Reference in the online help.

Some properties can also be referenced using the GraphObjectUnderMouse property. For more information, see “Using point and click”.