How to have looping within the go.GraphObject.make object

Hi All,

I want to draw multiple capsule objects within a panel object and the number of capsules will be dependent upon some external data which will be coming for API.
As of now I am able to do it for single capsule but facing issue about how this can be achieved for multiple objects?

That’s what Panel.itemArray is for. Bind that property to a data property whose value will be an Array of data.