How to open Org Chart in full-screen mode on load

Note

For the versions earlier than 4.x.x (including on-premises ones), please follow this instruction.

In this tip, I will describe how to open Org Chart in full-screen mode on load.

Open the configuration wizard and switch to the Custom code step. Add the code below into the code editor. Then finish the wizard. This script will enable a full-screen mode for your OrgChart when it loads.

api.onInitialLoadingFinished(() => {
  renderer.enableDisableFullScreen();
});
Configuration full size mode