Difference between revisions of "Graph Setting Associations"
m (Removed note about 3.1 (now ancient history)) |
|||
(10 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
− | + | [[Category: Graphs]] | |
− | More generally, each graph setting has an ''association'' that control | + | If you use [[Graph setup dialog]] to change the style, font, or background settings of a graph, that change applies to the Mid or any [[Uncertainty views|uncertainty view]] of that variable. But, if you set the line style for a PDF view of a variable, it will usually not apply to the CDF view of that variable. If you change the axis range of a scale, it will still apply to that dimension if you pivot the graph or swap horizontal and vertical scales. |
+ | |||
+ | More generally, each graph setting has an ''association'' that control which graph views it applies to. Usually, Analytica just does what you expect, so you don't have to think about these associations. But, occasionally you may need to understand their effects, especially when saving defaults for a model or defining a template. | ||
There are four types of association, controlling what types of graph a change to a graph setting applies to: | There are four types of association, controlling what types of graph a change to a graph setting applies to: | ||
Line 11: | Line 13: | ||
'''Dimension Associations:''' Settings in the Axis Ranges tab, including range, reverse order, categorical, or log scale, apply to the specified dimension or index. When you pivot the graph, or swap horizontal and vertical, they still apply to that dimension. If you click "Set default" after changing settings for a scale that is an index variable, those settings will become the default for that index in all graphs that use that index. | '''Dimension Associations:''' Settings in the Axis Ranges tab, including range, reverse order, categorical, or log scale, apply to the specified dimension or index. When you pivot the graph, or swap horizontal and vertical, they still apply to that dimension. If you click "Set default" after changing settings for a scale that is an index variable, those settings will become the default for that index in all graphs that use that index. | ||
− | '''Uncertainty view Associations:''' The application of Line style and related settings on the Chart Type tab is different for categorical and continuous graphs, and may differ by uncertainty view (PDF, CDF, Confidence Bands, etc.). | + | '''Uncertainty view Associations:''' The application of Line style and related settings on the Chart Type tab is different for categorical and continuous graphs, and may differ by [[Uncertainty views|uncertainty view]] ([[PDF]], [[CDF]], Confidence Bands, etc.). |
+ | Whether the X-axis dimension is categorical or continuous determines whether a graph is considered categorical or continuous. (If SwapXY is on, the Y-axis that determines this). Separate line-styles are maintained for the categorical case and the continuous case. So, if you pivot a graph, causing the X-axis to change from a continuous dimension to a categorical one, the graph settings can swap from a line-graph to a bar graph, for example. (Only the line-style depends on the categorical / continuous distinction). | ||
− | + | Settings in this category are associated with a view mode. [[Mid]], [[Mean]] and Bands all share the same association, so a setting for Mid will transfer to a graph of Mean. Separate settings exist for stats view, continuous [[PDF]], continuous [[CDF]], discrete prob mass, discrete cum prob, and sample. There is a separate line style for the continuous and categorical case for each of these views. But all other settings in this category, such as Area fill, change only with the view mode. (so you can't have a filled line for continuous mean and unfilled line for categorical mean, but you could have an unfilled line for mean and a filled line for PDF). | |
− | |||
− | Settings in this category are associated with a view mode. Mid, Mean and Bands all share the same association, so a setting for Mid will transfer to a graph of Mean. Separate settings exist for stats view, continuous PDF, continuous CDF, discrete prob mass, discrete cum prob, and sample. There is a separate line style for the continuous and categorical case for each of these views. But all other settings in this category, such as Area fill, change only with the view mode. (so you can't have a filled line for continuous mean and unfilled line for categorical mean, but you could have an unfilled line for mean and a filled line for PDF). | ||
Finally, when a line style is set to Bar, the graph is required to be categorical. A flag indicates whether the continuous style setting has been set to bar, and if so, a continuous X-axis is forced to categorical when the graph is rendered. | Finally, when a line style is set to Bar, the graph is required to be categorical. A flag indicates whether the continuous style setting has been set to bar, and if so, a continuous X-axis is forced to categorical when the graph is rendered. | ||
− | = Graph Settings and their Association Type = | + | == Graph Settings and their Association Type == |
− | + | Internally, these graph settings are stored in attributes, whose identifier starts with "Att_", or Graph settings, starting with "Graph_". This table shows their name, association type, and notes explaining them. | |
− | {| | + | {| class="wikitable" valign="top" |
− | ! | + | !Description !! Stored as !! Sys or Att Name !! Association Type !! Notes |
|- | |- | ||
− | !colspan="5" align="left" | Graph Template | + | ! colspan="5" align="left" | Graph Template |
|- | |- | ||
− | | Graph Template Identifier || Attribute || Att_graphTemplate || Global | + | | Graph Template Identifier || Attribute ||<code>Att_graphTemplate</code>|| Global |
|- | |- | ||
− | !colspan="5" align="left" | Line Style Settings: | + | ! colspan="5" align="left" | Line Style Settings: |
|- | |- | ||
− | | Line Style || Attribute | + | | Line Style || Attribute |
− | | Att_ContLineStyle & Att_CatLineStyle <br> | + | |<code>Att_ContLineStyle</code> & <code>Att_CatLineStyle</code> <br> |
− | 0 = dot<br> | + | <code>0</code> = dot<br><code>1</code> = line only<br><code>4</code> = symbol only<br><code>5</code> = line & symbol<br><code>6</code> = step<br><code>9</code> = bar |
− | 1 = line only<br> | ||
− | 4 = symbol only<br> | ||
− | 5 = line & symbol<br> | ||
− | 6 = step<br> | ||
− | 9 = bar | ||
| View | | View | ||
− | | | + | | Attribute used depends on whether x-axis is categorical or continuous |
|- | |- | ||
− | | Stacked Bar flag || Attribute || Att_StackedBar || View | + | | Stacked Bar flag || Attribute ||<code>Att_StackedBar</code>|| View |
|- | |- | ||
− | | Stacked lines flag || Attribute || Att_stacked_lines || View | + | | Stacked lines flag || Attribute ||<code>Att_stacked_lines</code>|| View |
|- | |- | ||
− | | Area fill flag | + | | Area fill flag || Attribute ||<code>Att_AreaFill</code>|| View |
|- | |- | ||
| Relative Proportion Flag<br>(not yet implemented) | | Relative Proportion Flag<br>(not yet implemented) | ||
− | | Attribute || Att_relProportion || View | + | | Attribute ||<code>Att_relProportion</code>|| View |
|- | |- | ||
− | | Bar Overlap Percent || Attribute || Att_barOverlap || View | + | | Bar Overlap Percent || Attribute ||<code>Att_barOverlap</code>|| View |
− | |||
|- | |- | ||
− | | Symmetric Colors flag<br>(not implemented) || Attribute || Att_symmetric_colors || Key | + | | Symmetric Colors flag<br>(not implemented) || Attribute ||<code>Att_symmetric_colors</code>|| Key |
|- | |- | ||
− | | Transparency for fills || Sys var || Graph_fillTransparency || Global || Scale of 0 to 255 | + | | Transparency for fills || Sys var ||<code>Graph_fillTransparency</code>|| Global || Scale of 0 to 255 |
|- | |- | ||
− | | Bar Shape || Sys Var || Graph_barShape || View | + | | Bar Shape || Sys Var ||<code>Graph_barShape</code>|| View |
|- | |- | ||
− | | 3D Effects flag || Sys Var || Graph_3DEffects || Global | + | | 3D Effects flag || Sys Var ||<code>Graph_3DEffects</code>|| Global |
|- | |- | ||
− | | Line Thickness || Sys Var || Graph_LineThickness || Global | + | | Line Thickness || Sys Var ||<code>Graph_LineThickness</code>|| Global |
|- | |- | ||
− | | Use Separate Color / Symbol Keys || SysVar || Graph_SymbolKey || Global | + | | Use Separate Color / Symbol Keys || SysVar ||<code>Graph_SymbolKey</code>|| Global |
|- | |- | ||
− | | Enable Symbol Size Role || Sys Var || Graph_SymbolSizeKey || Global | + | | Enable Symbol Size Role || Sys Var ||<code>Graph_SymbolSizeKey</code>|| Global |
|- | |- | ||
− | | Symbol Size || Sys Var || symbolSize || Global || For fixed symbol size | + | | Symbol Size || Sys Var ||<code>symbolSize</code>|| Global || For fixed symbol size |
|- | |- | ||
− | | Min Symbol Size || Sys Var || Graph_minSymbolSize || Global || For variable symbol size | + | | Min Symbol Size || Sys Var ||<code>Graph_minSymbolSize</code>|| Global || For variable symbol size |
|- | |- | ||
− | | Max Symbol Size || Sys Var || Graph_maxSymbolSize || Global || For variable symbol size | + | | Max Symbol Size || Sys Var ||<code>Graph_maxSymbolSize</code>|| Global || For variable symbol size |
|- | |- | ||
− | !colspan="5" align="left" | Axis Ranges: | + | ! colspan="5" align="left" | Axis Ranges: |
|- | |- | ||
− | | Dimension range settings<br>(for Index values) || Attribute || Att_graphIndexRange | + | | Dimension range settings<br>(for Index values) || Attribute ||<code>Att_graphIndexRange</code> |
| Dimension | | Dimension | ||
− | | For case when Va1 has self-index,<br>used for the self-index.<br> | + | | For case when <code>Va1</code> has self-index,<br>used for the self-index.<br> |
− | ver, cat,auto, includezero, log, reverse, incs, min, max<br> | + | <code>ver, cat,auto, includezero, log, reverse, incs, min, max</code><br> |
where:<br> | where:<br> | ||
− | ver : Must be 1 (version)<br> | + | <code>ver</code> : Must be 1 (version)<br> |
− | cat : Categorical flag (1=force categorical interp), opt.<br> | + | <code>cat</code> : Categorical flag (<code>1</code>=force categorical interp), opt.<br> |
− | auto : Full autoscale flag <br> | + | <code>auto</code> : Full autoscale flag <br> |
− | includezero : force 0 to be in range flag <br> | + | <code>includezero</code> : force 0 to be in range flag <br> |
− | log : log scaling flag<br> | + | <code>log</code> : log scaling flag<br> |
− | reverse : reverse order flag<br> | + | <code>reverse</code> : reverse order flag<br> |
− | incs : Number of increments<br> | + | <code>incs</code> : Number of increments<br> |
− | min : minimum value for manually scaled axis<br> | + | <code>min</code> : minimum value for manually scaled axis<br> |
− | max : maximum value for manually scaled axis<br> | + | <code>max</code> : maximum value for manually scaled axis<br> |
+ | <code>catPos</code>: 1=The preceeding «min», «max» are the position of categorical values. 0=They are the actual value (usually a real number). | ||
|- | |- | ||
− | | Dimension range settings<br>(for non-index values) || Attribute || Att_graphValueRange | + | | Dimension range settings<br>(for non-index values) || Attribute ||<code>Att_graphValueRange</code> |
| Dimension | | Dimension | ||
− | | | + | | Axis settings for value dimensions. When a variable has a self-index, both its index and its value may be separately used in graphing roles, so this attribute has the settings for the value, whereas <code>Att_graphIndexRange</code> has the axis settings for the self-index.<br /><br /> |
+ | The field here are the same as for <code>Att_graphIndexRange</code>. In addition, multiple value settings may appear, separated by a bar (<code>|</code>) character. After the first, each successive settings is first preceeded by a number and a colon, followed by the same fields as in <code>Att_graphIndexRange</code>. The number corresponds to a position in the <code>Att_GraphSetupSlices</code> attribute. These multiple settings are used to store the axis ranges for comparison slices in an XY-plot, so that if you are plotting <code>Va1[J='x']</code> vs <code>Va1[J='z']</code>, the axis ranges for x can tracked separately from the axis ranges for z. The very first field (before the first bar) is not preceded by a number and colon, and is used for the main result when not a comparison slice (including the case where it is sliced to do index slicers other than the comparison index). | ||
+ | |- | ||
+ | |Result slices || Attribute ||<code>Att_graphSetupSlices</code>|| View | ||
+ | | A list of slices that have, or may have, axis settings in <code>Att_graphValueRange</code>. It is a bracketed list, here the first entry is the number of slots per item as is usually 3. (Although this could vary by Analytica release due to enhancements). When this is a 3, the next 3 entries are the first item, with components «idv», «ind» and «posv». «idv» is the id that appears before the colon in <code>Att_GraphSetupSlices</code>. «ind» is the comparison index that this applies to, which can be either a global index indentifier or <code>Sys_LocalIndex('name')</code> for a local index. «posv» is the 1-based slice number along the comparison index. | ||
|- | |- | ||
− | | Use Categorical || Attribute || Att_forceCategorical || View | + | | Use Categorical || Attribute ||<code>Att_forceCategorical</code>|| View |
− | | Forces categorical X-axis. | + | | Forces categorical X-axis. |
|- | |- | ||
− | !colspan="5" align="left" | Style Settings: | + | ! colspan="5" align="left" | Style Settings: |
|- | |- | ||
− | | Frame Style || Sys Var | + | | Frame Style || Sys Var |
− | | Frame<br> | + | |<code>Frame</code><br> |
− | 0 = None<br> | + | <code>0</code> = None<br><code>1</code> = Bottom Left<br><code>2</code> = All solid<br><code>3</code> = All dashed |
− | 1 = Bottom Left<br> | ||
− | 2 = All solid<br> | ||
− | 3 = All dashed | ||
| Global | | Global | ||
|- | |- | ||
− | | Frame Color || Sys var || Graph_frameColor || Global | + | | Frame Color || Sys var ||<code>Graph_frameColor</code>|| Global |
|- | |- | ||
− | | Grid Style || Sys Var | + | | Grid Style || Sys Var |
− | |Grid<br> | + | |<code>Grid</code><br> |
− | 0 = None<br> | + | <code>0</code> = None<br><code>1</code> = Dots<br><code>2</code> = Pluses<br><code>3</code> = Lines<br><code>4</code> = Dots |
− | 1 = Dots<br> | ||
− | 2 = Pluses<br> | ||
− | 3 = Lines<br> | ||
− | 4 = Dots | ||
| Global || | | Global || | ||
|- | |- | ||
− | | Grid Color || Sys Var || Graph_gridColor || Global || | + | | Grid Color || Sys Var ||<code>Graph_gridColor</code>|| Global || |
|- | |- | ||
− | | Tick locations || Sys Var || Ticks || Global || | + | | Tick locations || Sys Var ||<code>Ticks</code>|| Global || |
|- | |- | ||
− | | Tick direction || Sys Var || Graph_tickDir || Global || 0=outward, 1=inward, 2=both. | + | | Tick direction || Sys Var ||<code>Graph_tickDir</code>|| Global ||<code>0</code> = outward, <code>1</code> = inward, <code>2</code> = both. |
|- | |- | ||
− | | Key Position || Sys Var | + | | Key Position || Sys Var |
− | | ShowKey<br> | + | |<code>ShowKey</code><br> |
− | 0 = None<br> | + | <code>0</code> = None<br><code>1</code> = Bottom<br><code>2</code> = Right<br><code>3</code> = Left |
− | 1 = Bottom<br> | ||
− | 2 = Right<br> | ||
− | 3 = Left | ||
| Global || | | Global || | ||
|- | |- | ||
− | | Outline key flag || Sys Var || Graph_OutlineKey || Global || | + | | Outline key flag || Sys Var ||<code>Graph_OutlineKey</code>|| Global || |
|- | |- | ||
− | !colspan="5" align="left" | Font: | + | ! colspan="5" align="left" | Font: |
|- | |- | ||
− | | Axis title font || Sys Var || Graph_axisTitleFont || Global | + | | Axis title font || Sys Var ||<code>Graph_axisTitleFont</code>|| Global |
|- | |- | ||
− | | Axis title color || Sys Var || Graph_axisTitleColor || Global | + | | Axis title color || Sys Var ||<code>Graph_axisTitleColor</code>|| Global |
|- | |- | ||
− | | Axis label font || Sys Var || Graph_axisLabelFont || Global | + | | Axis label font || Sys Var ||<code>Graph_axisLabelFont</code>|| Global |
|- | |- | ||
− | | Axis label color || Sys Var || Graph_axisLabelColor || Global | + | | Axis label color || Sys Var ||<code>Graph_axisLabelColor</code>|| Global |
|- | |- | ||
− | | Key title font || Sys Var || Graph_keyTitleFont || Global | + | | Key title font || Sys Var ||<code>Graph_keyTitleFont</code>|| Global |
|- | |- | ||
− | | Key title color || Sys Var || Graph_keyTextColor || Global | + | | Key title color || Sys Var ||<code>Graph_keyTextColor</code>|| Global |
|- | |- | ||
− | | Key label font || Sys Var || Graph_keyFont || Global | + | | Key label font || Sys Var ||<code>Graph_keyFont</code>|| Global |
|- | |- | ||
− | | Key label color || Sys Var || Graph_keyLabelColor || Global | + | | Key label color || Sys Var ||<code>Graph_keyLabelColor</code>|| Global |
|- | |- | ||
− | | Vertical Label Rotation || Sys Var || Graph_VLabelRotation || Global | + | | Vertical Label Rotation || Sys Var ||<code>Graph_VLabelRotation</code>|| Global |
|- | |- | ||
− | | Horizontal Label Rotation || Sys Var || Graph_HLabelRotation || Global | + | | Horizontal Label Rotation || Sys Var ||<code>Graph_HLabelRotation</code>|| Global |
|- | |- | ||
− | !colspan="5" align="left" | Patterns: | + | ! colspan="5" align="left" | Patterns: |
|- | |- | ||
− | | Page fill || Sys Var || Graph_PageBrush || Global | + | | Page fill || Sys Var ||<code>Graph_PageBrush</code>|| Global |
|- | |- | ||
− | | Plot Area Fill || Sys Var || Graph_plotAreaBrush || Global | + | | Plot Area Fill || Sys Var ||<code>Graph_plotAreaBrush</code>|| Global |
|- | |- | ||
− | | Key Area Fill || Sys Var || Graph_keyAreaBrush || Global | + | | Key Area Fill || Sys Var ||<code>Graph_keyAreaBrush</code>|| Global |
|- | |- | ||
− | !colspan="5" align="left" | Key Sequences: | + | ! colspan="5" align="left" | Key Sequences: |
|- | |- | ||
− | | Symbol sequence || Sys Var || [[Graph_SymbolSeq]] || Global || Order of symbols used in keys | + | | Symbol sequence || Sys Var ||[[Graph_SymbolSeq]]|| Global || Order of symbols used in keys |
|- | |- | ||
− | | Color sequence || Sys Var || [[Graph_ColorSeq]] || Global || List of colors used for curves | + | | Color sequence || Sys Var ||[[Graph_ColorSeq]]|| Global || List of colors used for curves |
|- | |- | ||
− | | Line-dash sequence<br>(not implemented) || Sys Var || Graph_LineDashSeq || Global || | + | | Line-dash sequence<br>(not implemented) || Sys Var ||<code>Graph_LineDashSeq</code>|| Global || |
|- | |- | ||
− | | Fill-effects sequence<br>(not implemented) || Sys Var || Graph_FillEffectsSeq || Global || | + | | Fill-effects sequence<br>(not implemented) || Sys Var ||<code>Graph_FillEffectsSeq</code>|| Global || |
|- | |- | ||
− | !colspan="5" align="left" | Excel Graph: | + | ! colspan="5" align="left" | Excel Graph: |
|- | |- | ||
− | | External graphing engine (Excel Chart) || Sys var || GraphTool || Global || Disabled for now. | + | | External graphing engine (Excel Chart) || Sys var ||<code>GraphTool</code>|| Global || Disabled for now. |
|- | |- | ||
− | !colspan="5" align="left" | Role/Pivot state: | + | ! colspan="5" align="left" | Role/Pivot state: |
|- | |- | ||
− | | X-Axis role || Attribute || Att_xRole || Global | + | | X-Axis role || Attribute ||<code>Att_xRole</code>|| Global |
|- | |- | ||
− | | Y-Axis role || Attribute || Att_yRole || Global | + | | Y-Axis role || Attribute ||<code>Att_yRole</code>|| Global |
|- | |- | ||
− | | Color role || Attribute || Att_colorRole || Global | + | | Color role || Attribute ||<code>Att_colorRole</code>|| Global |
|- | |- | ||
− | | Symbol shape role || Attribute || Att_symbolRole || Global | + | | Symbol shape role || Attribute ||<code>Att_symbolRole</code>|| Global |
|- | |- | ||
− | | Symbol size role || Attribute || Att_symbolSizeRole || Global | + | | Symbol size role || Attribute ||<code>Att_symbolSizeRole</code>|| Global |
|- | |- | ||
− | | Origin role || Attribute || Att_originRole || Global | + | | Origin role || Attribute ||<code>Att_originRole</code>|| Global |
|- | |- | ||
− | | Other free indexes<br>(not implemented) || Attribute || Att_freeIndexes || View | + | | Other free indexes<br>(not implemented) || Attribute ||<code>Att_freeIndexes</code>|| View |
| For scatter only plots. | | For scatter only plots. | ||
|- | |- | ||
− | | Coordinate Index || Attribute || Att_coordinateIndex || Result || Contains identifier of index | + | | Coordinate Index || Attribute ||<code>Att_coordinateIndex</code>|| Result || Contains identifier of index |
|- | |- | ||
− | | Exogenous Values || Attribute || Att_exogenousValues || Result || List of expressions | + | | Exogenous Values || Attribute ||<code>Att_exogenousValues</code>|| Result || List of expressions |
|} | |} | ||
The following system variables are used to hold graph settings for special cases: | The following system variables are used to hold graph settings for special cases: | ||
− | * Graph_Primary_Valdim | + | * <code>Graph_Primary_Valdim</code> |
− | * Graph_Stats_Valdim | + | * <code>Graph_Stats_Valdim</code> |
− | * Graph_PDF_Valdim | + | * <code>Graph_PDF_Valdim</code> |
− | * Graph_Prob_Valdim | + | * <code>Graph_KDE_Valdim</code> |
− | * Graph_CDF_Valdim | + | * <code>Graph_Prob_Valdim</code> |
− | * Graph_Cumprob_Valdim | + | * <code>Graph_CDF_Valdim</code> |
+ | * <code>Graph_CntExcd_Valdim</code> | ||
+ | * <code>Graph_DisExcd_Valdim</code> | ||
+ | * <code>Graph_Cumprob_Valdim</code> | ||
+ | |||
+ | ==See Also== | ||
+ | * [[Graph Style Templates]] |
Latest revision as of 14:42, 29 October 2024
If you use Graph setup dialog to change the style, font, or background settings of a graph, that change applies to the Mid or any uncertainty view of that variable. But, if you set the line style for a PDF view of a variable, it will usually not apply to the CDF view of that variable. If you change the axis range of a scale, it will still apply to that dimension if you pivot the graph or swap horizontal and vertical scales.
More generally, each graph setting has an association that control which graph views it applies to. Usually, Analytica just does what you expect, so you don't have to think about these associations. But, occasionally you may need to understand their effects, especially when saving defaults for a model or defining a template.
There are four types of association, controlling what types of graph a change to a graph setting applies to:
Global Associations: Appearance settings, such as colors, style, font, and background are global -- meaning that a change to one graph for a variable will apply to all graph views of that variable; clicking "Set default" button, will apply these settings to all graphs in the model that use defaults for those settings.
Result Associations: These settings apply only to the specific graph, and no other graphs, even if you click "Set Default".
Dimension Associations: Settings in the Axis Ranges tab, including range, reverse order, categorical, or log scale, apply to the specified dimension or index. When you pivot the graph, or swap horizontal and vertical, they still apply to that dimension. If you click "Set default" after changing settings for a scale that is an index variable, those settings will become the default for that index in all graphs that use that index.
Uncertainty view Associations: The application of Line style and related settings on the Chart Type tab is different for categorical and continuous graphs, and may differ by uncertainty view (PDF, CDF, Confidence Bands, etc.).
Whether the X-axis dimension is categorical or continuous determines whether a graph is considered categorical or continuous. (If SwapXY is on, the Y-axis that determines this). Separate line-styles are maintained for the categorical case and the continuous case. So, if you pivot a graph, causing the X-axis to change from a continuous dimension to a categorical one, the graph settings can swap from a line-graph to a bar graph, for example. (Only the line-style depends on the categorical / continuous distinction).
Settings in this category are associated with a view mode. Mid, Mean and Bands all share the same association, so a setting for Mid will transfer to a graph of Mean. Separate settings exist for stats view, continuous PDF, continuous CDF, discrete prob mass, discrete cum prob, and sample. There is a separate line style for the continuous and categorical case for each of these views. But all other settings in this category, such as Area fill, change only with the view mode. (so you can't have a filled line for continuous mean and unfilled line for categorical mean, but you could have an unfilled line for mean and a filled line for PDF).
Finally, when a line style is set to Bar, the graph is required to be categorical. A flag indicates whether the continuous style setting has been set to bar, and if so, a continuous X-axis is forced to categorical when the graph is rendered.
Graph Settings and their Association Type
Internally, these graph settings are stored in attributes, whose identifier starts with "Att_", or Graph settings, starting with "Graph_". This table shows their name, association type, and notes explaining them.
Description | Stored as | Sys or Att Name | Association Type | Notes |
---|---|---|---|---|
Graph Template | ||||
Graph Template Identifier | Attribute | Att_graphTemplate |
Global | |
Line Style Settings: | ||||
Line Style | Attribute | Att_ContLineStyle & Att_CatLineStyle
|
View | Attribute used depends on whether x-axis is categorical or continuous |
Stacked Bar flag | Attribute | Att_StackedBar |
View | |
Stacked lines flag | Attribute | Att_stacked_lines |
View | |
Area fill flag | Attribute | Att_AreaFill |
View | |
Relative Proportion Flag (not yet implemented) |
Attribute | Att_relProportion |
View | |
Bar Overlap Percent | Attribute | Att_barOverlap |
View | |
Symmetric Colors flag (not implemented) |
Attribute | Att_symmetric_colors |
Key | |
Transparency for fills | Sys var | Graph_fillTransparency |
Global | Scale of 0 to 255 |
Bar Shape | Sys Var | Graph_barShape |
View | |
3D Effects flag | Sys Var | Graph_3DEffects |
Global | |
Line Thickness | Sys Var | Graph_LineThickness |
Global | |
Use Separate Color / Symbol Keys | SysVar | Graph_SymbolKey |
Global | |
Enable Symbol Size Role | Sys Var | Graph_SymbolSizeKey |
Global | |
Symbol Size | Sys Var | symbolSize |
Global | For fixed symbol size |
Min Symbol Size | Sys Var | Graph_minSymbolSize |
Global | For variable symbol size |
Max Symbol Size | Sys Var | Graph_maxSymbolSize |
Global | For variable symbol size |
Axis Ranges: | ||||
Dimension range settings (for Index values) |
Attribute | Att_graphIndexRange
|
Dimension | For case when Va1 has self-index,used for the self-index.
|
Dimension range settings (for non-index values) |
Attribute | Att_graphValueRange
|
Dimension | Axis settings for value dimensions. When a variable has a self-index, both its index and its value may be separately used in graphing roles, so this attribute has the settings for the value, whereas Att_graphIndexRange has the axis settings for the self-index.The field here are the same as for |
Result slices | Attribute | Att_graphSetupSlices |
View | A list of slices that have, or may have, axis settings in Att_graphValueRange . It is a bracketed list, here the first entry is the number of slots per item as is usually 3. (Although this could vary by Analytica release due to enhancements). When this is a 3, the next 3 entries are the first item, with components «idv», «ind» and «posv». «idv» is the id that appears before the colon in Att_GraphSetupSlices . «ind» is the comparison index that this applies to, which can be either a global index indentifier or Sys_LocalIndex('name') for a local index. «posv» is the 1-based slice number along the comparison index.
|
Use Categorical | Attribute | Att_forceCategorical |
View | Forces categorical X-axis. |
Style Settings: | ||||
Frame Style | Sys Var | Frame
|
Global | |
Frame Color | Sys var | Graph_frameColor |
Global | |
Grid Style | Sys Var | Grid
|
Global | |
Grid Color | Sys Var | Graph_gridColor |
Global | |
Tick locations | Sys Var | Ticks |
Global | |
Tick direction | Sys Var | Graph_tickDir |
Global | 0 = outward, 1 = inward, 2 = both.
|
Key Position | Sys Var | ShowKey
|
Global | |
Outline key flag | Sys Var | Graph_OutlineKey |
Global | |
Font: | ||||
Axis title font | Sys Var | Graph_axisTitleFont |
Global | |
Axis title color | Sys Var | Graph_axisTitleColor |
Global | |
Axis label font | Sys Var | Graph_axisLabelFont |
Global | |
Axis label color | Sys Var | Graph_axisLabelColor |
Global | |
Key title font | Sys Var | Graph_keyTitleFont |
Global | |
Key title color | Sys Var | Graph_keyTextColor |
Global | |
Key label font | Sys Var | Graph_keyFont |
Global | |
Key label color | Sys Var | Graph_keyLabelColor |
Global | |
Vertical Label Rotation | Sys Var | Graph_VLabelRotation |
Global | |
Horizontal Label Rotation | Sys Var | Graph_HLabelRotation |
Global | |
Patterns: | ||||
Page fill | Sys Var | Graph_PageBrush |
Global | |
Plot Area Fill | Sys Var | Graph_plotAreaBrush |
Global | |
Key Area Fill | Sys Var | Graph_keyAreaBrush |
Global | |
Key Sequences: | ||||
Symbol sequence | Sys Var | Graph_SymbolSeq | Global | Order of symbols used in keys |
Color sequence | Sys Var | Graph_ColorSeq | Global | List of colors used for curves |
Line-dash sequence (not implemented) |
Sys Var | Graph_LineDashSeq |
Global | |
Fill-effects sequence (not implemented) |
Sys Var | Graph_FillEffectsSeq |
Global | |
Excel Graph: | ||||
External graphing engine (Excel Chart) | Sys var | GraphTool |
Global | Disabled for now. |
Role/Pivot state: | ||||
X-Axis role | Attribute | Att_xRole |
Global | |
Y-Axis role | Attribute | Att_yRole |
Global | |
Color role | Attribute | Att_colorRole |
Global | |
Symbol shape role | Attribute | Att_symbolRole |
Global | |
Symbol size role | Attribute | Att_symbolSizeRole |
Global | |
Origin role | Attribute | Att_originRole |
Global | |
Other free indexes (not implemented) |
Attribute | Att_freeIndexes |
View | For scatter only plots. |
Coordinate Index | Attribute | Att_coordinateIndex |
Result | Contains identifier of index |
Exogenous Values | Attribute | Att_exogenousValues |
Result | List of expressions |
The following system variables are used to hold graph settings for special cases:
Graph_Primary_Valdim
Graph_Stats_Valdim
Graph_PDF_Valdim
Graph_KDE_Valdim
Graph_Prob_Valdim
Graph_CDF_Valdim
Graph_CntExcd_Valdim
Graph_DisExcd_Valdim
Graph_Cumprob_Valdim
Enable comment auto-refresher