Assigning colors to nodes

I am not able to assign different colors to the node(s) in the state chart. Requesting please provide help regarding this.

Thank you in advance.

What code did you try?

Have you examined the examples that do assign colors to Shapes? Many of the examples in the Introduction show how this is done.