Hi all,
I'm formatting an indicator dashboard element. I'm trying to make the first word white and the value(datapoint["count"]) yellow which reflects the data sum of the feature class. Any feedback would be helpful!
Here is what I tried so far but doesn't do what I want.
var count = $datapoint["count"];
var color = IIF(count == $datapoint["count"]) {
return topColor: '#FFFF00' ,
} else {
return topColor: '#FFFFFF',
};
return {
//textColor:'',
backgroundColor:'#000000',
topText:'Open Projects:' + '' + data,
//attributes: {
// attribute1: '',
// attribute2: ''
// }
topTextColor: color,
topTextOutlineColor: '',
topTextMaxSize: 'medium',
middleText: 'Month: July',
middleTextColor: '#FFFF00',
middleTextOutlineColor: '#FFFF00',
middleTextMaxSize: 'small',
//bottomTextOutlineColor: '',
//bottomTextMaxSize: 'medium',
//iconName:'',
//iconAlign:'left',
//iconColor:'',
//iconOutlineColor:'',
//noValue:false,
}