Hi everyone. Well, basically that’s my issue. I have defined a couple of derived fields to process states, counties and other codes. When I try them in a Bars visualization they render, but I can’t make them work (they never render) in the Raw Data Table visualization.
Just in case I’m leaving here the definition for one of them:
cont stateMap = {
'AL' : 'Alabama',
'AK' : 'Alaska',
...
}
const state_derived = {
'name': 'state_derived',
'label': 'State Derived',
'type': 'ATTRIBUTE',
'dependencies': ['state_code'],
'reverse': (derived) => {
let index = Object.values(stateMap).indexOf(derived);
let result = Object.keys(stateMap)[index];
return result;
},
'function': (code) => {
let stateStr = stateMap[code];
return stateMap[code] ? stateMap[code] : code;
}
}