I'd like to be able to display the number of 'unsafe' buildings our inspection team 'clears' in terms of the number of buildings cleared cumulatively in the current year, the current month, and last month. I can do this using 3 separate indicators, as in the screen shot below, but would like to see if there is a way to do this in a single widget.
Solved! Go to Solution.
You can't put line breaks into an indicator, so you could do something like this:
But honestly, that isn't the most intuitive presentation of data. A better one might be a Details element, which you could configure like this
You can't put line breaks into an indicator, so you could do something like this:
But honestly, that isn't the most intuitive presentation of data. A better one might be a Details element, which you could configure like this
Yes, this is using a Data Expression. It would look something like this
var p = Portal("https://arcgis.com");
var poles = FeatureSetByPortalItem(p, yourItemID, 0);
//your code to set variables thisYearValue, thisMonthValue, and lastMonthValue
var jsonDictionarySTART = {
fields: [{
alias: "This Year",
name: "THISYEAR",
type: "esriFieldTypeInteger",
},
{
alias: "This Month",
name: "THISMONTH",
type: "esriFieldTypeInteger",
},
{
alias: "Last Month",
name: "LASTMONTH",
type: "esriFieldTypeInteger",
},
],
spatialReference: { wkid: 4326 },
geometryType: "esriGeometryPoint",
features: [{
attributes: {
THISYEAR: thisYearValue,
THISMONTH: thisMonthValue,
LASTMONTH: lastMonthValue
},
}]
};
return FeatureSet(Text(jsonDictionarySTART));
Ok, that makes sense, I didn't see any other way to insert multiple values as you did.