bindingInfo.yFields

yFields to return the fields currently bound to Y-axis at runtime.

Specifies the query fields to be displayed on the Y-axis.

Type

Two-dimensional array: [[Field_1,Type_1],[Field_2,Type_2],…​]

  • Field is a field name (String)

  • Type is one of Chart.STRING, Chart.DATE, or Chart.NUMBER

Example

Chart1.query = "All Sales";
Chart1.bindingInfo.xFields = [["Employee",Chart.STRING]];
Chart1.bindingInfo.yFields = [["Total",Chart.NUMBER]];

bindingInfoXFields 1

Dashboard script that modifies bindingInfo should generally be placed in the onRefresh handler. See Add Dashboard Script.