bindingInfo.getMappings(col)
|
Returns the mappings that exist between the values in field col and defined geographical codes (as a two-dimensional string array).
Example
Display mappings in column 'city':
var mapArr = Chart1.bindingInfo.getMappings('city');
for(i=0 ; i<mapArr.length ; i++) {
alert('Value "' + mapArr[i][0] + '" is mapped to ' + mapArr[i][1] + '.');
}

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