When the Chart changes, ReGraph will automatically update the viewport to make it clear what is happening. This can mean zooming out to include hidden items before they change, or zooming in to remove 'whitespace' when removing or combining items.
You can customize this behavior using the fit Chart option.
<Chart items={items} options={{ fit: "all" }} />;fit defaults to a value of 'auto'. This lets ReGraph decide how to adjust the view while minimizing disruption to the user's context. Alternatively, it can be set to fit all items, a specific set of items, or to not change at all. When setting the fit to a value other than 'auto', the view will only change at the end of an update.
You can set the view to a fixed position by setting the view prop, which disables all fit behaviors.
Use instance methods to pan(), zoom() or fit() the Chart explicitly, as shown in the Toolbar example.