function processFlowerData (data) {
            var fd = [];

            for (var i = 0; i < otConsts.datatypesOrder.length; i++) {
                var dkey = otConsts.datatypes[otConsts.datatypesOrder[i]].id;
                var key = otConsts.datatypesOrder[i];
                fd.push({
                    'value': data ? data[dkey] : 0,
                    'label': otConsts.datatypes[key].shortLabel, // otConsts.datatypesLabels[key],
                    'active': true
                });
            }

            return fd;
        }
/*
         * takes a datasources array and returns an array of objects {value: number, label:string}
         */
takes a datasources array and returns an array of objects {value: number, label:string}
takes a datasources array and returns an array of objects { value : number label : string }
function processFlowerData (data) {
            var fd = [];
            for (var i = 0; i < otConsts.datatypesOrder.length; i++) {
                var dkey = otConsts.datatypes[otConsts.datatypesOrder[i]].id;
                var key = otConsts.datatypesOrder[i];
                fd.push({
                    'value': data ? data[dkey] : 0,
                    'label': otConsts.datatypes[key].shortLabel, 
                    'active': true
                });
            }
            return fd;
        }
function processFlowerData ( data ) { var fd = [ ] ; for ( var i = 0 ; i < otConsts . datatypesOrder . length ; i ++ ) { var dkey = otConsts . datatypes [ otConsts . datatypesOrder [ i ] ] . id ; var key = otConsts . datatypesOrder [ i ] ; fd . push ( { 'value' : data ? data [ dkey ] : 0 , 'label' : otConsts . datatypes [ key ] . shortLabel , 'active' : true } ) ; } return fd ; }
takes a datasources array and returns an array of objects {value: number, label:string}
takes a datasources array and returns an array of objects { value : number label : string }
// otConsts.datatypesLabels[key],