Accessing data properties

To access properties related to a graph’s data at runtime, you use methods of the GraphicObjectGraph object. There are two categories of methods related to graph data:

You call the data-access methods after a graph has been created and populated with data. Some graphs, such as graphs that display data for a page or group of data, are destroyed and re-created internally as the user pages through the data. Any changes you made to the display of a graph, such as changing the color of a series, are lost when the graph is re-created.

Property for graph creation

To be assured that data-access methods are called after a graph has been created and populated with data, you can test the value of the GraphicObjectGraph Created property, or call the methods in the GraphCreated event.

The GraphCreated event occurs after the graph has been created and populated with data, but before the graph displays. By accessing the data in the graph in this event, you are assured that you are accessing the current data and that the data displays the way you want it to.