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],…]
-
Fieldis a field name (String) -
Typeis one ofChart.STRING,Chart.DATE, orChart.NUMBER
Example
Chart1.query = "All Sales";
Chart1.bindingInfo.xFields = [["Employee",Chart.STRING]];
Chart1.bindingInfo.yFields = [["Total",Chart.NUMBER]];

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