2D or 3D Force Graph with Lit In this article we will cover how to create a 2D/3D force graph using Lit. TLDR The final source here and an online demo. Prerequisites Vscode Node = 16 Typescript Getting Started We can start off by navigating in terminal to the location of the project and run the following: Then enter a project name and now open the project in vscode and install the dependencies: Update the with the following: Template Open up the and update it with the following: We are passing the graph data as JSON here, but we could also set a src attribute pointed to a remote or local file…