As the name of this graph type implies, the Stock graph type is useful for displaying information about stocks. Each data item is displayed as a stock bar, which can represent the following information: the high and low prices for the day and the opening and closing prices for the day. A stock graph is able to graph information about the high, low, opening and closing values of stocks. The look of the stock bar depends on which Stock graph subtype you are using.
While there can be an infinite number of categories (usually dates) in a Stock graph, there is only one data series (usually representing a single stock), meaning that there is only one data item (stock bar) per category. Of: course, your graph could also use each category to represent the prices for a separate stock, which would allow you to compare prices for separate stocks on a single day.
Data items in stock bars must have at least two values: the high value and the low value. The open value and the close value may be optional, depending on the graph subtype. Example 13.10 below shows how a typical Stock graph works.
Stock graphs are in the Stock Data Class (see Chapter 12 for details). To create a Stock graph with PopChart XML, create a Graph element and set its Type attribute to Stock, as shown in the example below.