HOW TO
In ArcGIS Dashboards, dashboard elements can be configured to display information in an easy-to-read format. This article provides the workflow to display a countdown in the Indicator element using an Arcade expression.


var startDate = Today();
var endDate = Date(year,month,day);
var daysLeft = DateDiff(endDate, startDate,'day');
return {
middleText: daysLeft,
middleTextMaxSize: 'large',
bottomText: 'Days left!',
}
Note: In the Date function, months are defined by 0-11 where 0 is January and 11 is December. For example, to indicate May, type '4' as the month in the Date function.

Artikel-ID: 000027014
Unterstützung durch ArcGIS-Experten anfordern
Beginnen Sie jetzt mit dem Chatten