Using the Graph presentation style

Instead of embedding a graph in a DataWindow object, you can use the Graph presentation style to create a DataWindow object that is only a graph—the underlying data is not displayed.

One advantage of the Graph presentation style is that the graph resizes automatically if users resize the DataWindow control associated with the graph DataWindow object at runtime.

StepsTo use the Graph presentation style:

  1. In the Solution Explorer, right-click the library where you want to save the DataWindow object and select Add New Entry.

  2. In the Add New Entry dialog box, select DataWindow Object from the categories list and select the Graph DataWindow style, provide a name for the DataWindow object, and click Add.

  3. On the Choose Data Source for Graph DataWindow page, specify the data you want retrieved into the DataWindow object.

    For more information, see Chapter 3, “Defining DataWindow Objects.”

  4. On the Define Graph Data page, enter the definitions for the series, categories, and values, as described in “Associating data with a graph”, and click Next.

    Note that when using the Graph presentation style, the graph always graphs all rows; you cannot specify page or group.

  5. On the Define Graph Style page, enter a title for the graph, select a graph type, and click Next.

  6. On the Ready to Create Graph DataWindow page, review your specifications and click Finish.

    A model of the graph displays in the Design view.

  7. Specify the properties of the graph, as described in “Defining a graph's properties”.