Solved! Go to Solution.
//define popup template for census layer 4 var template2 = new esri.dijit.PopupTemplate({ title: "Name {NAME}", description: "Descriptive info can go here ....", mediaInfos: [{ "title": "Male/Female", "type": "piechart", "caption": "Chart caption for male/female chart", "value": { "fields": ["TotMale", "TotFem"] } }, { "title": "Race", "type": "piechart", "caption": "Caption for race chart", "value": { "fields": ["AllWhite", "AllBlk", "AllAsian", "HispTot"] } }] });