操作方法
在 ArcGIS Dashboards 中,可以将仪表盘元素配置为以易于阅读的格式显示信息。 本文提供了使用 Arcade 表达式在指示器元素中显示倒计时的工作流。


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.

文章 ID: 000027014
获取来自 ArcGIS 专家的帮助
立即开始聊天