Inserting stock charts

You can create a stock chart dynamically based on an external data source.

Stock charts have the following properties in the Generator inspector:

Data source specifies from which data source to build the chart. The data needs to consist of four columns: open, close, high, and low.

Chart Type specifies the type of stock chart to create.

Max Data Entries controls the number of values displayed in the chart (both the maximum permitted and the minimum number for which space is allotted.) For example, if Max Data Entries is set to 10, no more than the first 10 values from the data source are plotted in the chart, and the remaining values in the data source are ignored. If Max Data Entries is set to 10 and only 5 values are provided, Generator renders those 5 values provided in the first half of the chart only (50% of the charting area). When set to Default or left blank, Max Data Entries has no effect on the chart; the number of values in the data source are displayed in the full width of the chart.

Start Offset specifies how far to the right of the left vertical axis to start plotting data. The default is 0.

Gap specifies the gap between each bar. The default is 0.

Grid Scales has Generator calculate the number and position of grid lines automatically (Auto) or calculate the position for the number of grid lines specified by the Major and Minor Gridlines properties (Manual).

Labels specifies whether or not labels should appear along the X axis of the chart.

Horizontal Label Orientation specifies whether the orientation of labels on the X axis is vertical or horizontal.

Horizontal Label Scale specifies the size of the label. The label can be scaled to fit the chart element (Scale to Fit) or displayed at the symbol size (Fixed). Half and Double display the symbol at half or double its original size, respectively. You can also enter a numerical scale factor to apply to the symbol. For example, entering 0.25 scales the label to one-quarter of the symbol size.

Grid Lines specifies whether or not grid lines are displayed behind the chart elements.

Value Display specifies whether the numeric value data should appear in the chart (Always or Never) or that it should be visible only when the pointer is over the chart area (Rollover).

Value Scale indicates whether or not the text that displays the value data, when Value Display is set to Always or Rollover, should scale to fit within the chart element's area or within a fixed size. Half and Double display the symbol at half or double its original size, respectively. You can also enter a numerical scale factor to apply to the symbol. For example, entering 0.25 scales the label to one-quarter of the symbol size.

Value To Display displays any of the following values: Open, Close, High, or Low.

Value Placement specifies where value labels should be positioned within the chart.

Major Gridlines specifies the number of the bolder gridlines that are drawn in the chart when Grid Lines is set to On and Grid Scales is set to Manual. Must be an integer value.

Minor Gridlines specifies the number of lines between the bolder gridlines that are drawn in the chart when Grid Lines is set to On and Grid Scales is set to Manual. Must be an integer value.

Min Y-Pos Type specifies whether the minimum value of the chart is fixed at the value represented in Min Y-Pos or calculated by multiplying the lowest value by the percentage given in Min Y-Pos. The Min Y-Pos Type Relative Percent is used to ensure that the lowest value found in the data source is always n percent above the minimum value in the chart.

Min Y-Pos is an integer that specifies the lowest value represented in the chart when Min Y-Pos Type is set to Absolute. When Min Y-Pos Type is set to Relative Percent, the value in Min Y-Pos is interpreted as a percentage and used to position the lowest value found in the data source at n percent above the minimum value of the chart.

Max Y-Pos Type specifies whether the maximum value of the chart is fixed at the value represented in Max Y-Pos or calculated by multiplying the highest value by the percentage given in Max Y-Pos. Relative percent is used to ensure that the highest value found in the data source is always n percent below the maximum value in the chart.

Max Y-Pos is an integer value that specifies the highest value represented in the chart when Max Y-Pos Type is set to Absolute. When Max Y-Pos Type is set to Relative Percent, the value in Max Y-Pos is interpreted as a percentage and used to position the highest value found in the data source at n percent below the maximum value of the chart.

Border toggles a bounding rectangle around the chart object. The rectangle's color is the color specified in the Color property.

Border Thickness specifies the width of the chart object's border and gridlines (both major and minor). Each unit equals 1/20 of a pixel.

Line Thickness specifies the width of lines that display data in the chart.

Open Column is the heading for the Open column in the data source, if it is not Open.

Close Column specifies the heading for the Close column for values in the data source, if it is not Close.

High Column specifies the heading for the High column for values in the data source, if it is not High.

Low Column specifies the heading for the Low column for values in the data source, if it is not Low.

Label Format is the font for the chart labels along the X and Y axes.

Value Format is the font for the chart value labels appearing within the body of the chart.

Symbol File specifies the path to an external Generator template containing the symbols to use for chart labels and values. If Labels is set to On, the file must have a symbol named chartLabel1 containing the variable {label} and a symbol named chartValue1 with the variable {value} for values.

Instance Name identifies the instance of the object so that it can be used with actions such as Tell Target and Set Property. See Using variables as parameters for Flash actions for more information on using this parameter.

Color specifies the Web-safe color name (for example, black), Web hexadecimal value (for example, #3434aa), or regular hexadecimal value (for example, 0x232356) of the color for the chart.