Open this page in the API Guide

SankeyDiagram.invalidateSize Method

Notifies the control that its container element size may have changed.