colorField

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

Returns the name of the query field that is currently assigned to the ‘Color’ binding (ColorFrame) at runtime. This property is read-only. Use bindingInfo.setColorField(col, type) to set the ‘Color’ binding in script.

Type

String

Example

if (Chart1.colorField == 'State') {
  StateSelectionList1.visible = true;
}
else {
  StateSelectionList1.visible = false;
}

Either syntax below can be used in component script:

colorField           // unqualified
Chart1.colorField    // qualified

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