Hello,
In the advanced formatting settings I'm trying to use arcade to display the text data within the field the indicator is referencing. This is my code
var cat = $datapoint["count_Asset_Group"]
return {
//textColor:'',
//backgroundColor:'',
topText: cat,
topTextColor: '',
topTextOutlineColor: '',
topTextMaxSize: 'medium',
middleText: $datapoint["count_Asset_Group"],
middleTextColor: '',
middleTextOutlineColor: '',
middleTextMaxSize: 'large',
//bottomText: '',
//bottomTextColor: '',
//bottomTextOutlineColor: '',
//bottomTextMaxSize: 'medium',
iconName:'icon1',
iconAlign:'left',
iconColor:'',
iconOutlineColor:''
//noValue:false,
//attributes: {
// attribute1: '',
// attribute2: ''
// }
}
However, the top text is only showing the number of times the value in the field shows up when I want it to show the actual text of the field ex. House, Car....
This is a screen shot of how I configured the data in my indicator
Solved! Go to Solution.
You can hack it by grouping a feature mode indicator to the top of the summary indicator. Just pick a random value to display, then add the category field to the top text and remove the value field from that indicator.
Set it to only render when the category selector has been used to filter it and then change the 'selection' message to 'All'.
You have them both set to $datapoint["count_Asset_Group"] so they will be showing the same text. What value are you expecting to see there?
When you're editing your Arcade expression, you should have the option of expanding the view:
This will allow you to see all the available globals. Depending on how you have your indicator configured, there may not be any global with the value you need.
I want to see the value of the deficiency. When I change the selection in the selector below it updates the indicator, but I want the indicator to say which deficiency it is.
I don't think an Indicator can do that on its own. You could possibly use a Data Expression to create your aggregated counts, then set the Indicator to Feature mode, rather than showing statistics. But that might be more trouble than it's worth.
You can hack it by grouping a feature mode indicator to the top of the summary indicator. Just pick a random value to display, then add the category field to the top text and remove the value field from that indicator.
Set it to only render when the category selector has been used to filter it and then change the 'selection' message to 'All'.
That allowed me to have the deficiency type value show but now the number doesn't show up.
I think there needs to me something in the middle text but the $datapoint["count_Asset_Group"] doesn't work now.
You would have my feature indicator to handle the text, and your statistic indicator to handle the value. You then hold down shift while dragging one to the other to 'group them'. You can't do it all in a single indicator unless you're going to go down @jcarlson's data expression route.
Okay, I used two indicators and now it displays properly. Thanks for your help!
@JenniferAcunto I can't seem to get your solution to work. The data changes but I can't get the text to change. I want the text to change from active to inactive when the category selector is changed just like the data
Also between your 2 indicators there is no separator line. How did you do that?