bindingInfo.getGroupOrder(col,binding)

bindingInfo.setGroupOrder(col, grouping) to set the binding information.

Returns the grouping level for a specified Date dimension.

Parameters

col

Name of field for which to obtain grouping

binding

The field’s binding, one of the following:

Chart.BINDING_FIELD:   // bound to X or Y axis
Chart.AESTHETIC_COLOR: // bound to Color
Chart.AESTHETIC_SHAPE: // bound to Shape
Chart.AESTHETIC_SIZE:  // bound to Size
Chart.AESTHETIC_TEXT:  // bound to Text

Return

Number
5 = Chart.YEAR_INTERVAL
4 = Chart.QUARTER_INTERVAL
3 = Chart.MONTH_INTERVAL
2 = Chart.WEEK_INTERVAL
1 = Chart.DAY_INTERVAL
8 = Chart.HOUR_INTERVAL
7 = Chart.MINUTE_INTERVAL
6 = Chart.SECOND_INTERVAL
513 = Chart.QUARTER_OF_YEAR_PART
514 = Chart.MONTH_OF_YEAR_PART
515 = Chart.WEEK_OF_YEAR_PART
518 = Chart.DAY_OF_MONTH_PART
519 = Chart.DAY_OF_WEEK_PART
521 = Chart.HOUR_OF_DAY_PART

Example

Chart1.bindingInfo.getGroupOrder("Order Date", Chart.BINDING_FIELD)
Dashboard script that modifies bindingInfo should generally be placed in the onRefresh handler. See Add Dashboard Script.