I want to reflect the updated content of the model in the diagram

How can I reflect the updated content of the model in the diagram?

By using the property below, the model updates, but the changes are not reflected in the diagram. Why?
model.setDataProperty(nodeData, “color”, "lightblue);

First, is that node data in that model? Is model.containsNodeData(nodeData) true?

Second, does the corresponding Node’s template have one or more Bindings of some property using the source property “color”?

Third, did you execute that statement within a transaction? For example,

model.commit(model => {
  . . .
  model.setDataProperty(nodeData, "color", "lightblue");
  . . .
});