Hello, I'm attempting to create an arcade script that combines three layers (point, line, and polygon) with the same schema and then displaying that in a serial chart or pie chart. When I attempt to run the expression below the dashboard expression editor has this as the output. Any help would be greatly apricated! I've been staring at this for hours...
Thanks!

var p = Portal("https://maps.xyzxyzxy.com/portal/");
var point_field = FeatureSetByPortalItem(p,***itemid***,0,["Cat28Code2025","Notes2025","Ocondition2025","RBU"],false);
var polyline_field = FeatureSetByPortalItem(p,"***itemid***",0,["Cat28Code2025","Notes2025","Ocondition2025","RBU"],false);
var polygon_field = FeatureSetByPortalItem(p,"***itemid***",0,["Cat28Code2025","Notes2025","Ocondition2025","RBU"],false);
var combinedDict = {
fields:[
{name : "CatCode",type : "esriFieldTypeSmallInteger"},
{name : "Notes",type : "esriFieldTypeString"},
{name : "Condition",type : "esriFieldTypeDouble"},
{name : "BusinessUnit",type : "esriFieldTypeString"},
{name : "Source", type : "esriFieldTypeString"},
],
'geometryType':"",
'features':[], //create empty array for features
};
var i = 0;
//Loop through each FeatureSet and populate feature array
for (var m in point_field){
combinedDict.features[i] = {
attributes: {
CatCode : m["Cat28Code2025"],
Notes : m["Notes2025"],
Condition : m["Ocondition2025"],
BusinessUnit : m["RBU"],
Source : "Point"
},
};
i++;
}
for (var m in polyline_field){
combinedDict.features[i] = {
attributes: {
CatCode : m["Cat28Code2025"],
Notes : m["Notes2025"],
Condition : m["Ocondition2025"],
Source : "Polyline"
},
};
i++;
}
for (var m in polygon_field){
combinedDict.features[i] = {
attributes: {
CatCode : m["Cat28Code2025"],
Notes : m["Notes2025"],
Condition : m["Ocondition2025"],
Source : "Polygon"
},
};
i++;
}
// Return dictionary cast as a feature set
return FeatureSet(Text(combinedDict));