Shahid,
There you go, you have to bind the model name to your property values as well.
sap.suite.ui.commons.ComparisonData({ title: "{ComparisonModel>AmountType}", value: "{ComparisonModel>AmountSum}", color: { path: 'ComparisonModel>AmountSum', formatter: function(v) { if (v > 2000) { return "Critical"; } else{ return "Good"; } return parseInt(v); } } })
Regards,
Sai Vellanki.