2019.2

Table Of Contents
Expanded Script window
When expanded, the Script window replaces all parts of the wizard below the Selector by a box
in which the script can be typed. See "Writing your own scripts" on page853.
For an overview of keyboard shurtcuts that can be used in this script editor, see "Keyboard
shortcuts" on page1009.
Chart Script dialog
The Chart Script dialog specifies which variable data will be displayed in a chart and shows a
preview of both the chart (on the right hand side) and the data (at the bottom). This dialog is one
of the parts of the Insert Chart wizards. It can be reopened by double-clicking the relevant script
in the Scripts pane.
For more information about charts, see: "Business graphics" on page696.
These are the options in the Chart Script dialog:
l
Name: The name of the script, making it easier to identify it.
l
Selector: The Selector or Text to apply the script to.
l
Selector: Uses CSS selectors to find the element to which the script applies. (See
also: "Selectors in Connect" on page878.)
l
Text: Uses text as a trigger for the script. The script applies to all instances of the
text found in the template.
l
Selector and Text: Uses text within the specified Selector as a trigger for the script.
l
Input Type: Use the drop-down to select the source of the data to add to the Chart.
l
Data fields: Select to use fields at the record level in the Data Model.
l
Data table: Select to use fields in a detail table. At least one detail table must be
available in the Data Model Pane for this option to be functional.
l
Detail table: Use the drop-down to select one of the detail tables that are part
of the Data Model.
l
Category: Use the drop-down list to select the data field (in the selected detail
table) of which the values will appear under the bars or the line; in other
words, on the x axis.
Page 984