var dia = graphic.attributes.Diameter;
Diameter is an attribute for your graphics, correct? If so, when you have access to your graphic, do this:var dia = graphic.attributes.Diameter;
var featureAttributes = featureSet.features[0].attributes; diam=featureAttributes['Diameter'];