bindingInfo.setDiscrete(col, val, type)
Sets the specified column as ‘discrete’. The ‘discrete’ option allows a measure to behave as a dimension on the chart.
Parameter
- col
-
Name of field to set discrete
- val
-
true: Set field as discrete
false: Set field as not discrete - type
-
Binding type of field, one of the following. If omitted, defaults to
Chart.BINDING_FIELD.Chart.BINDING_FIELD Chart.AESTHETIC_COLOR Chart.AESTHETIC_SHAPE Chart.AESTHETIC_SIZE Chart.AESTHETIC_TEXT
Examples
Chart1.bindingInfo.setDiscrete("Total", true, Chart.BINDING_FIELD);
Chart1.bindingInfo.setDiscrete("Paid", true, Chart.AESTHETIC_COLOR);
Chart1.bindingInfo.setDiscrete("Paid", true, Chart.AESTHETIC_SHAPE);
Chart1.bindingInfo.setDiscrete("Paid", true, Chart.AESTHETIC_SIZE);
Chart1.bindingInfo.setDiscrete("Paid", true, Chart.AESTHETIC_TEXT);
Dashboard script that modifies bindingInfo should generally be placed in the onRefresh handler. See Add Dashboard Script.
|