Data Table Component
Data tables are used to display and compare variable information in a table format. Use the data table properties to format your tables, modify the text appearance, and change the positioning of the table in your sim.Access the data table component properties by clicking on the data table component after it has been placed on the canvas. The Data Table Settings tab will appear in the component panel and will display a stack of horizontal tabs that are labeled and categorized as follows:
- Data - Contains the property options used to add, label, edit, or remove variables, and to format the rows of the data table.
- Style - Contains the property options used to adjust the data table text.
- Size, Position, and ToolTip - Contains the property options used to adjust the size and position of the data table and provide tooltip information to the user.
Scroll down to view descriptions of all the data table property options. Note that the property descriptions below are divided into the same categories found in the Data Table Settings tab.
Example: Data Table
Data Table Settings: Data
Click the 'Data' tab in the component panel to access the properties used to add, label, edit, or remove variables, and to format the rows of the data table.- Add a Variable - Click the ‘Add a Variable’ drop-down menu arrow, and then click 'Browse' to view the variables to include in the data table.
- Label for Variable - Enter text in the ‘Label for Variable’ text entry box to be displayed as a heading of the data table.
- NumberFormat for Variable - Enter a number in the ‘NumberFormat for Variable’ text entry box to be displayed in the 'Number' column of the data table.
- Add Variable - Click the ‘Add Variable’ button to add the variable information entered in the 'Add a Variable', 'Label for Variable', and 'NumberFormat' text entry boxes.
- Edit Variable - Click the ‘Edit Variable’ button to edit a variable. Note that variables must first be highlighted in the data properties table (the list box above the 'Edit' button). Clicking the 'Edit Variable' button will enable you to edit the information in the 'Label for Variable' and 'NumberFormat' text entry boxes.
- Remove Variable - Click the ‘Remove Variable’ button to remove a variable. Note that variables must first be highlighted in the list box above the 'Remove Variable' button.
- Make a Compare Runs Table - Place a check in the 'Make a Compare Runs Table’ box to compare run results. Note that variables in the model must be set as .SaveResult.
- Row Skip - Enter a number in the ‘Row Skip’ text entry box to display data in specific patterns. Example: For data at times (0 through 12) select the number two to display every second item: 0, 2, 4, 6, 8…; select the number three to display every third item: 0, 3, 6, 9, 12...; etc.
- Vertical - Place a check in the ‘Vertical’ checkbox to change data to being displayed as a vertical table (as opposed to a horizontal table). Vertical tables have each variable in its own column, horizontal tables have each variable in its own row.
- Squeeze to Fit - Check this box to condense the table columns so that there are no scrollbars.
- First Column Width - Uncheck the 'Squeeze to Fit' checkbox to manually enter a number in the ‘First Column Width’ text entry box. The number entered determines the width of the first column.
- Other Column Widths - Uncheck the 'Squeeze to Fit' checkbox to manually enter a number in the ‘Other Column Widths’ text entry box. The number entered determines the width of all the columns.
FAQs
How do I change the number format?
Data Table Settings: Data Tab
Data Table Settings: Style
Click the 'Style' tab in the component panel to access the properties used to adjust the data table text.
- Font Family - Click the ‘Font Family’ drop-down menu arrow to choose the font of the text displayed in the data table.
- Font Size - Enter a number in the ’Font Size’ text entry box to change the font size of the text displayed in the data table.
- Font Color - Click on the ‘Font Color’ box to change the color of the text in the data table.
- Compared Run Colors - To compare runs, variable results must be set to saved in the model, and the 'Make a Compare Runs Table' checkbox in the data table’s 'Data' properties must be checked. Then, a color can be set to represent the run for comparing variables.
Data Table Settings: Style Tab
Data Table Settings: Size, Position, and ToolTip
Click the ‘Size, Position, and ToolTip’ tab in the component panel to access the properties used to adjust the size and position of the data table and provide tooltip information to the user.- X - Enter a number in the ‘X’ text entry box to adjust the left and right positioning of the data table on the canvas. A higher number moves the data table to the right, and a lower number moves the data table to the left.
- Y - Enter a number in the ‘Y’ text entry box to adjust the up and down positioning of the data table on the canvas. A larger number will lower the position, and a smaller number moves the data table higher.
- Width - Enter a number in the ‘Width’ text entry box to adjust the data table width.
- Height - Enter a number in the ‘Height’ text entry box to adjust the data table height.
- Tab Index - Specifies the tab ordering of objects in a SWF file. The tabIe index property is -1 by default, meaning no tab index is set.
- Lock - Use the ‘Lock’ checkbox to lock the data table’s position in place on the canvas. A small lock icon will appear near the data table. Click on the lock icon or uncheck the lock checkbox to unlock the data table.
- Visible to Facilitator Only - Use the ‘Visible to Facilitator’ checkbox to restrict the data table‘s visibility to only be seen by facilitators.
- Tooltip - Enter in the details of the data table in the ‘ToolTip’ text entry box. The details entered will appear on the screen when a user places their mouse cursor on or across the data table.
Data Table Settings: Size, Position, and ToolTip Tab