The Chart widget in Web AppBuilder for ArcGIS displays incorrect sum of attribute values when multiple fields are selected.
上次发布: April 1, 2016ArcGIS Online
漏洞 ID 编号
BUG-000089370
已提交
July 28, 2015
上次修改时间
June 5, 2024
适用范围
ArcGIS Online
找到的版本
3.8
修正版本
Online 3.10
状态
Fixed
此漏洞已得到修复。 有关详细信息,请参阅“版本修复”和“其他信息”(如果适用)。
解决办法
Replace all the NULL values with zeros in the feature service.Modify chart's preview.js. after the call on line 1906//filter features with number values firstly var fs = args.featureSet.features;and add the following:array.forEach(fs, lang.hitch(this, function(feature) { var attributes = feature.attributes; array.forEach(valueFields, lang.hitch(this, function(fieldName) { if (attributes[fieldName] === null && typeof attributes[fieldName] === "object") attributes[fieldName] = 0; })); }));