xFields

Property is read-only. It cannot be set in script.

Returns the names of the query fields (as an array) that are currently assigned to the X-axis binding at runtime. This property is read-only. Use bindingInfo.xFields to assign fields to the X-axis.

Type

Array of Strings

Example

if (Chart1.xFields[0] == 'State') {
  StateSelectionList1.visible = true;
}
else {
  StateSelectionList1.visible = false;
}

Either syntax below can be used in component script:

xFields           // unqualified
Chart1.xFields    // qualified

For onInit/onRefresh scripts, and for component and property scripts on other components, the second (qualified) form is required.