---
sourceDocument: Australia Strategic Portfolio Management
sourceDocumentLink: https://www.servicenow.com/docs/r/it-business-management

 Release :

    - australia

ft:locale :

    - en-US

ft:publication_title :

    - Australia Strategic Portfolio Management

ft:clusterId :

    - itbm

bundleId :

    - itbm

workflow :

    - Technology


---

# Scripted Elements form

# Scripted Elements form {#ariaid-title1}

* Release version: Australia
* 
* Updated March 12, 2026
* 
* ![](https://www.servicenow.com/docs/portal-asset/ico-clock) 1 minute to read

Use the Scripted Elements form to define the data script to fetch data for a complex
report type such as line chart or bar chart.
{#scripted-elements-form__table_hwf_ymm_t5b__entry__2}

| Field | Description |
|-|-|
| Name | Name for the element. |
| Type | Chart type (Line chart or Bar chart) that you want to generate. After the required chart type is selected, the suggested format of the scripted elements code format is displayed in the Data Script field. |
| Description | Description for the report. (Example: Comparison of planned vs. Actual costs.) |
| Data Script | Script used to fetch data for the report. For more information on how to manage Scripted Elements, see [Manage Related Tables and Scripted Elements forms](https://www.servicenow.com/docs/3DOasSNs1w3LvpW8xM~cuQ "Manage the Related Tables and Scripted Elements components that are required to create a Microsoft PowerPoint template."). |
[Table 1. Scripted Elements form]

{#scripted-elements-form__table_hwf_ymm_t5b}

## Line chart parameter {#scripted-elements-form__section_chr_swz_qvb}

Following are the basic parameters used to define the properties and formatting of a line
chart.
{#scripted-elements-form__table_mw2_1xz_qvb__entry__3}

| Parameter | Description | Reference value |
|-|-|-|
| `@property {String} seriesArray.properties.color - Color of Line` | Color of the line. | Use Hex code values to define a color of the line. For example, use the hex code `#FF0000` for red color. |
| `@property {String} seriesArray.properties.type - type of Line` | Type of line. | For more information about reference line formats, see <https://poi.apache.org/apidocs/dev/org/apache/poi/xddf/usermodel/PresetLineDash.html#DASH>. |
| `@property {String} seriesArray.properties.markerStyle - style of marker` | Style of the marker to identify key points on the chart. | For more information about reference marker formats, see <https://poi.apache.org/apidocs/dev/org/apache/poi/xddf/usermodel/chart/MarkerStyle.html>. |
| `@property {Number} seriesArray.properties.markerSize - size of style` | Size of the marker on the chart. | Minimum inclusive: 2, maximum inclusive: 72 |
| `@property {String} legendPosition - Position of legend in chart. This is optional` | Legend position of the chart. | For more information about legend position, see <https://poi.apache.org/apidocs/dev/org/apache/poi/xddf/usermodel/chart/LegendPosition.html>. |
[Table 2. Line chart parameters]

{#scripted-elements-form__table_mw2_1xz_qvb}

## Bar chart parameters {#scripted-elements-form__section_x4q_dyz_qvb}

Following are the basic parameters used to define the properties and formatting of a bar
chart.
{#scripted-elements-form__table_jmc_gyz_qvb__entry__3}

| Parameter | Description | Reference value |
|-|-|-|
| `@property {String} barProperties.direction` | The direction of plotting the bars in the chart. | For more information about defining a bar direction, see <https://poi.apache.org/apidocs/dev/org/apache/poi/xddf/usermodel/chart/BarDirection.html>. |
| `@property {String} barProperties.grouping - grouping of bars` | Grouping style of the bar in the chart. | Use options such as standard, clustered, stack. For more information about bar grouping properties, see <https://poi.apache.org/apidocs/dev/org/apache/poi/xddf/usermodel/chart/BarGrouping.html>. |
| `@property {Number} barProperties.overlay` | Size of overlapping among the bars in the chart. | Accepted numeric value range is from 0 to 100. |
[Table 3. bar chart parameters]

{#scripted-elements-form__table_jmc_gyz_qvb}

