Listed below are the Stock graph subtypes.
The graph depicted in Example 13.10 is a High-Low/Open-Close graph. The bottom of the stock bars in a High-Low/Open-Close graph indicates the stock's low value. The top of the stock bar indicates the stock's high value. The tick on the left side of the bar indicates the stock's open value, and the tick on the right side of the bar indicates the stock's close value.
To create a High-Low/Open-Close graph in PopChart XML, you should set the SubType attribute of Graph to HighLowOpenClose. The tag below shows how this is done.
<Graph Name='graph' Type='Stock' SubType='HighLowOpenClose'>
The High-Low subtype of Stock graphs is just like the High-Low/Open-Close subtype, only the open and close values are ignored. The stock bar will not have any ticks on it for the open and close values.
To create a High-Low/Open-Close graph in PopChart XML, you should set the SubType attribute of Graph to HighLow. The tag below shows how this is done.
<Graph Name='graph' Type='Stock' SubType='HighLowOpenClose'>
The High-Low subtype of Stock graphs is just like the High-Low/Open-Close subtype, only the open value is missing. The stock bar will only show a close tick on the left.
To create a High-Low/Open-Close graph in PopChart XML, you should set the SubType attribute of Graph to HighLowOpenClose. The tag below shows how this is done.
<Graph Name='graph' Type='Stock' SubType='HighLowOpenClose'>
Then, you should make sure that you only send three data values for each data item. The third data value will be considered the close data value (instead of the open value, as it would normally be). So for example, in the following PCScript, all of the third data values are close data values.
graph.SetSeries(My Stock; 12,23,17; 20,25,21)
The Candle Stick subtype of the Stock graph works as explained at the beginning of this section. However, it looks somewhat different. It uses candlesticks instead of stock bars. Candlesticks look like stock bars, except they don't use tick marks to indicate open/close information. Instead, they use a wide bar to show the difference between the opening and closing price. If the closing price is higher than the opening price (meaning the stock gained for the day), the bar will be transparent. If the closing price is lower than the opening price (meaning the stock lost for the day), the bar will be colored in.
The image below illustrates how a Candle Stick graph works.
To create a Candle Stick graph in PopChart XML, you should set the SubType attribute of Graph to CandleStick. The tag below shows how this is done.