Gojs overview in another component

I want to display diagram in one component and overview in another div, do you have any about that, I’m passing the diagram object as props to overview component but its not working

Are you using React? You cannot serialize/deserialize any Diagram or Part (Node or Link) or any GraphObject or Tool or Layout or any other instance of a GoJS class, except Point/Size/Rect/Margin/Spot.

Maybe you could pass the id?

how to make initial position of overview as 0,0

I want the diagram overview in top of canvas but it is mid of canvas

Set { contentAlignment: go.Spot.Top } on the Overview.