How to Center a diagram?

Hi,
I save a diagram in json format.
As soon is i load the diagram from the database and set the model (fromJson.(…)) i would like the diagram to be located in the center of the diagram (div).
I tried the initialContentAligmnent, but it didn’t help, it places the nodes exactly where they were saved (binding to “location”).
Any way to “move” the entire nodes to the center of the div ?
Regards,
Tany

Setting Diagram.initialContentAlignment to go.Spot.Center is the right thing to do. There are lots of samples that do this.

Do you have a small screenshot that you can show? Are you doing anything else after setting the Diagram.model?

Yes, i set other attributes.
I will send u sample, next week.