Open a command prompt. Create a directory for SPFx solution.
md spfx-React-BalkanGraphChart

Navigate to the above-created directory.
cd spfx-React-BalkanGraphChart
Run the Yeoman SharePoint Generator to create the solution.
yo @microsoft/sharepoint

Solution Name
Hit Enter for the default name (spfx-pnp-DropDown in this case,) or type in any other name for your solution.
Selected Choice – Hit Enter
Target for the Component
Here, we can select the target environment where we are planning to deploy the client web part, i.e., SharePoint Online or SharePoint OnPremise (SharePoint 2016 onwards).
Selected Choice – SharePoint Online only (latest)
File Location
We may choose to use the same folder or create a subfolder for our solution.
Selected Choice – Same folder
Deployment Option
Selecting Y will allow the app to be deployed instantly to all sites and accessible everywhere.
Selected Choice: N (install on each site explicitly)
Permissions to access Web APIs
Choose if the components in the solution require permissions to access web APIs which are unique and not shared with other components in the tenant.
Selected choice: N (solution contains unique permissions)
Type of client-side component to create
We can choose to create a client-side web part or an extension. Choose the web part option.
Selected Choice – web part
Web part name
Hit Enter to select the default name or type in any other name.
Selected Choice – BalkanOrgChart
Web part description
Hit Enter to select the default description or type in any other value.
Framework to use
Select any JavaScript framework to develop the component. Available choices are – No JavaScript Framework, React, and Knockout.
Selected Choice – React
Yeoman generator will perform a scaffolding process to generate the solution. The scaffolding process will take a significant amount of time.
Once the scaffolding process is completed, lock down the version of project dependencies by running the below command:
npm shrinkwrap
In the command prompt, type below command to open the solution in the code editor of your choice.
code .
In BalkanOrgChart.tsx


System requirements
OrgChart JS will run on any server that supports HTML. You can even run OrgChart.js locally from a filesystem.
OrgChart JS does not depend on any third-party JavaScript library.
OrgChart JS works in all modern browsers and uses SVG for the graphics rendering.
nodes is the data source. The ‘id’ property is mandatory.
pid is the parent id, this represents a connection between two nodes.
nodeBinding is the ‘name’ property form, the data source will be bound to ‘field_0’ UI element from the template.