The Chart widget in Web AppBuilder for ArcGIS displays incorrect sum of attribute values when multiple fields are selected.
Last Published: April 1, 2016ArcGIS Online
Bug ID Number
BUG-000089370
Submitted
July 28, 2015
Last Modified
June 5, 2024
Applies to
ArcGIS Online
Version found
3.8
Version Fixed
Online 3.10
Status
Fixed
The bug has been fixed. See the Version Fixed and Additional Information, if applicable, for more information.
Workaround
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; })); }));